Home > Process Behavior Procedures and Reference > Define Tasks > Transactions Handling On Completion of Task

Transactions Handling On Completion of Task

You may perform various simulation actions when the Task page actions (such as elapsing Duration time) are completed. Some options impact BPMN indicators on the shape when using BPMN diagrams.

Task

Procedure

Duplicate transactions on completion

You can duplicate the transaction in the completion task of an activity when a single transaction needs to become multiple transactions to be processed. The duplicate transactions are processed separately.

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab and choose Duplicate.

  3. Enter a number or an expression in the Count field.

  4. Select New Family if you want to start a new family for duplicated transactions.

For Select New Family, when transactions that are members of an original family enter the activity, they become related to each other in the new family. Further, the transactions are no longer part of the original family when they leave the activity.

Note: Duplicate By Member allows you to duplicate each transaction into separate transactions, where each transaction has a unique member value for the specified attribute.

Discard transactions on completion

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab.

  3. In the first drop-down list, select Discard, and select Always or Expression in the second list.

  4. Select the Discard Transaction or Discard Family Members check box. You can select both check boxes.

Unbatch transactions on completion

Use when you have previously batched transactions on the Properties dialog box - Inputs page.

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab and select Unbatch from the drop-down list.

Generate a message or signal on completion

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab and select Message or Signal from the drop-down list.

  3. Click the message or signal button to set up a message or signal definition in the Define Message or Define Signals dialog box, if you don’t already have the message defined in the drop-down list.

  4. On the Task page - On Completion tab, choose the message or signal to send, and a partner for the message if you want to send the message to a specific partner. A partner must be specified for BPMN diagrams.

Create a fault or escalation exception on completion

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab and select Fault or Escalation from the drop-down list.

  3. Click the Fault or Escalation button and set up the fault or escalation definition in the Define Fault or Define Escalations dialog box, if you don’t already have the fault defined in the drop-down list.

  4. Click OK.

  5. On the Task page - On Completion tab, choose a fault or escalation to throw.

  6. If the fault or escalation carries data, choose the attribute value to throw with the fault from the Attribute drop-down list.

  7. If the fault or escalation should be thrown conditionally, enter the conditional expression in the expression field. By default, the fault or escalation is always thrown.

Cancel transactions on completion

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab and select Cancel from the drop-down list.

Compensate transactions on completion

  1. Double-click a shape and click the Task page in the Properties dialog box.

  2. Click the On Completion tab and select Compensate from the drop-down list.

  3. Set options including whether to wait for compensation activities to complete, and set which compensation activities are triggered.

Related Topics

Define Tasks