You can move or copy Java Actions to another position using cut, copy, and paste.
To use cut, copy and paste a Java Action:
Click the empty space in the Process Definition editor or select the node that has the Java Action assigned, to display the Properties view for the process definition or the node respectively.
Select the Action Set tab.
To cut a Java Action:
Select the Java Action and click Cut, OR:
Right click the Java Action and select Cut from the pop-up menu.
To copy a Java Action:
Select the Java Action and click Copy, OR:
Right click the Java Action and select Copy from the pop-up menu.
To paste the Java Action, right click the desired Action frame and select Paste from the pop-up menu.
If you select a folder, the Paste function will paste inside this folder. If you select a Java Action, the Paste function will paste after the selected Java Action.
Pasting Regular, Error and Compensation Actions
You can copy Java Actions from one Action frame and paste them into another frame. However, it is not always useful to paste a certain action into another action (for example, pasting an Error Action into a Compensation Action). As an example, exception qualifiers would be meaningless on a Compensation Action. Consequently, the Paste function automatically looks to see if there are any exception settings when pasting to a location that does not use them; any information which will be useless at the pasted location will be lost.
The following table shows what happens if you paste regular Java Actions, Error Actions, and Compensation Actions.
Position to paste Java Action -> Java Action to be copied | Regular Java Action | Error Action | Compensation Action |
---|---|---|---|
Regular Java Action | A regular Java Action is pasted together with the Error and Error and Compensation Actions assigned to it. | An Error Action is pasted. The default Error Action settings (rollback of transaction, error state) are used. All Error or Compensation Action settings in the copied regular Java Action are lost. | The Error Action is pasted. The default Error Action settings (rollback of transaction, error state) are applied. All Error or Compensation Action settings in the copied regular Java Action are lost. |
Error Action | A regular Java Action without Error and Compensation Actions is pasted. All error handling settings defined in the Error Handling tab will be lost (refer to section 11.1.7 Dealing With Errors in Java Actions. All other settings of the copied Error Action are successfully pasted. | An Error Action is pasted. | A Compensation Action is pasted. All error handling settings defined in the Error Handling tab will be lost (refer to section 11.1.7 Dealing With Errors in Java Actions. All other settings of the copied Error Action are successfully pasted. |
Compensation Action | A regular Java Action without Error and Compensation Actions is pasted. | An Error Action is pasted. The default Error Action settings (rollback of transaction, error state) are used. | A Compensation Action is pasted. |