Workflows in the MPT

Workflows in the MPT are implemented as pure Java code. Studio generates a stub class for you leaving only the implementation of the logic up to you. By contrast, the SPT has a graphical workflow editor which allows visual configuration of most workflow tasks.


Procedure 4.27. To Add a Workflow in the MPT:

  1. Open your module's MPT by double-clicking the MPT icon in the Navigator view.

  2. Click the model you want to work with in the outline view.

  3. Click the Workflows tab. You will see a list of workflows currently configured for the selected model.
    images/download/attachments/144835220/modeling_27-version-1-modificationdate-1645043231000-api-v2.png

  4. Click the Add button.

  5. Supply a name and description for the workflow in the ensuing dialog box, then click OK.

  6. Studio will generate a stub based on the name you supply.

  7. Click the Edit button to edit the code in a regular code window. Once you have successfully implemented your code, save the file. You can click the refresh button to refresh the display in the workflow tab, however this is not necessary to make the workflow work.

  8. You can deploy your new workflow by performing a build and restarting your server.