Selecting Events
The following events can be generated during execution of a workflow process:
Process creation, which occurs when a Start command is issued for an existing, enabled process definition.
Change of state, which occurs when an execution object (a process or an activity) changes states (for example, from running to completed).
Change of data value, which occurs when values are read into a process activity or written to process variables.
Change of assignee, which occurs when assignment of a workflow task changes from one user to another.
Error event, which occurs when an exception is thrown during process execution.
You can identify the events to be recorded in the workflow history or emitted as keyed events by setting the default event configuration in the wt.properties file.
* 
Workflows that are created before changes to the wt.properties are applied are not affected.
When one or more of the following properties is set to true, the corresponding event is recorded or emitted:
wt.workflow.engine.recordProcessStateChange
wt.workflow.engine.recordProcessDataChange
wt.workflow.engine.recordActivityStateChange
wt.workflow.engine.recordActivityDataChange
wt.workflow.engine.recordProcessCreation
wt.workflow.engine.recordAssigneeChange
wt.workflow.engine.recordException
wt.workflow.engine.recordVoting
wt.workflow.engine.emitProcessStateChange
wt.workflow.engine.emitProcessDataChange
wt.workflow.engine.emitActivityStateChange
wt.workflow.engine.emitActivityDataChange
wt.workflow.engine.emitProcessCreation
wt.workflow.engine.emitAssigneeChange
wt.workflow.engine.emitException
All running workflow processes record and emit events based on this default configuration. You can use the Workflow History Viewer to change the events recorded or emitted by a given process.
¿Fue esto útil?