Advanced workflows
|
Copyright 2008-2009 ManyDesigns srl. All rights reserved.
IntroductionManyDesigns Portofino supports three features (guards, actions, and notifications) which are all related to workflow transitions.To use them, make sure you have defined a workflow with a certain number of states and transitions. Then visit the workflow attribute's details page and click on the Operations button. A page will appear containing:
The columns of the matrix contain the workflow's transitions.
The rows of the matrix contain three sections for guards, actions, and notifications. At the intersections of the rows with the columns are a number of checkboxes that you can use to configure these advanced features. GuardsGuards are boolean attributes that enable (if true) or disable (if false) a workflow transition on an object.In the guards section, the system offers all the boolean attribute of the class. Select the combinations of guard/transition that you want to associate. ActionsBefore you can you this section, you must create at least one workflow action. Click on the Workflow actions tab, then on create. You are given the choice of creating either a Java workflow action or a Script workflow action. Both address the same purpose and functionality. What is different is the implementation: while the former needs a externally-complied Java class, the latter allows you to edit a BeanShell script directly in Portofino.A Java workflow action has the following fields:
In the actions section, the system offers all the workflow actions you have defined. Select the combinations of action/transition that you want to associate. The system is instructed that, when a transition is executed, also the associated actions are executed. NotificationsYou can instruct Portofino to notify certain users by email when a transition is executed on an object.Make sure the following properties are configured in the portofino-custom.properties file:
Finally, in the notifications section, select the combinations of actor/transition that you want to associate.
Previous: Constraints
Next: Portals and portlets |