Skip to end of metadata
Go to start of metadata

To define the user interface for a task, a .zul file must be located at the ui directory, and the corresponding task tag should be located at ui.xml file.

The user interface must be a ZK .zul page. This zul page must contain a task tag. This custom ZK tag is needed to properly manage the user interface behaviour.

The task component extends es.caib.bpm.ui.WorkflowWindow and it has the following custom attributes:

AttributeDescription
canAddAttachmentsa true value enables the user to upload files attached to the process instance
canDeleteAttachmentsa true value enables the user to delete attached files from the process instance
taskread only attribute that exposes current task information
processInstanceread only attribute that exposes current process information
signatureHandlerread only handler responsible for recognized signature generation.
engineread only BPM engine handler

 

The task component will receive some custom events:

EventDescription
onLoadThe task information has been loaded on the task component
onSaveThe task information is going to be persisted
onPrepareTransition

A transition is going to be performed. The transition name is sent as event data

If the event launches a UserWorkflowException, the transition will be cancelled

onCompleteTransitionA transition is performed. The transition name is sent as event data
onTabSelectedThe task tab has been selected or deselected. The tab id is sent as event data

In order to show or modify task attributes, the task tag is included in a data model context that eases components data binding. See ZK Data Binding  for details

Here is a sample zul page used to authorize synchronization servers connection.

 

 

  • No labels