Enacting from Code

The most direct way to enact a process is to identify a location in the application from where a process instance must be started. Code must then be inserted at that point to call the enactment service API.

The API allows the developer to specify the name of the process to start and to supply the enactment data required by the process.

While enacting a process in this way is simple and intuitive, it does have the draw back of being hard coded in the application logic. This being the case, alterations such as removing the enactment, changing the process to start or indeed even minor changes to the required enactment data will require code changes and redeployment of the application.

For more information about enacting processes from code, Process Enactment.