> ### 6.2 Using Java Actions

> Note: Scripts execute before actions, so if there is a prologue script and a prologue action on an activity, the prologue script executes first.

> You have already seen, in the "Define scripts" section, how JavaScripts can be used to customize your Interstage BPM process execution. JavaActions can be used for the same purpose. Instructions for using the following graphical interfaces are provided:

> · Defining UDA Assignment Java Actions shows you how to assign a value to a user-defined attribute (UDA).
> · Set Process Name Java Action shows you how to set the name of the process to which the JavaAction is attached.
> · Assign Task to User (Task Reassignment) Java Action shows you how to assign the task to which the JavaAction is attached to another user.
> · The Email Java Action shows you how to send an eMail message with a JavaAction.
> · Defining Rules Java Actions shows you how to define complex rules with a JavaAction.
> · Set Process Priority Java Action shows you how to set the priority of the process to which the JavaAction is attached.
> · Set UDA Value from SQL Java Action shows you how to set the value of a UDA with a SQL statement.
> · Set Process Description Java Action shows you how to set the description of the process to which the JavaAction is attached.

> If you have your own custom Java static methods, there is a Generic Java Actions interface that allows you to execute Java business methods outside the Interstage BPM Server environment as a JavaAction. For instructions on using this interface, see the "Defining Generic Java Actions" section. For more information on connecting to and using your custom Java code in Generic JavaActions, see the Interstage Business Process Manager Developer's Guide.

> JavaActions can be invoked at the same points of process execution as JavaScripts. These include:

> · At Process Initialization (Init Actions and Process Owner Actions)
> · At Process Completion (Commit Actions)
> · Before an activity starts (Prologue Actions and Role Actions)
> · At activity completion (Epilogue Actions)
> · When a timer expires (set by a Timer Action)

Business Process Manager Help-Fujitsu Computer Systems Corporation Interstage Website Voice: (888) 248-9273 Interstage BPM Information