5.3 Adding Transitions on Response

IMPORTANT:For the entry to transition to another state based on participants’ responses to the workflow questions, the responses must be associated with the new non-manual response transitions.

The following sections describe how to add response transitions and remove the manual transitions:

5.3.1 Adding the Response Transitions

The question, “Do you approve of this request?” has two possible responses. To implement our design, both of the responses must have an associated transition.

NOTE:The Transition out of this state access control determines who can view a Workflow question in a given state (see Section 3.2.3, Setting Access Rights).

  1. From the Teaming Administration portlet on the initial Liferay portal window, click the plus sign (+) to the left of Form and view designers to expand this section and view the available designers. To add the Teaming Administration portlet to the Liferay portal window, See Adding the Teaming Administration Portlet to Your Home Page.

    Teaming Administration portlet
  2. Click Workflow designer.

    Form and view designers
  3. Expand Workflow processes.

    Workflow processes
  4. Click PTO Request.

    Workflow processes
  5. Expand Workflow process, expand State - Review, then click Transitions.

    State processes
  6. Click Add.

    Transitions options dialog
  7. Click Transition on response.

    Transition add options dialog

    Only the Manual transition option is available for the basic workflow. All other transition types are part of the Advanced Workflow add-on module.

  8. In the __transition_on_question field, type in the Data name for your Workflow question (approve_request).

  9. In the Transition on response field, type the Data name for your Workflow response (approve_request_yes).

  10. In the To State drop-down list, select the state to which you are transitioning (Approve).

  11. Click OK.

    Transition on response form

    The new Transition on response process is added under Transitions.

    Transitions tree
  12. Repeat this procedure to add a Transition on response for the “No” Workflow response (approve_request_no) that transitions to the Deny state.

5.3.2 Removing Older Transitions

Creating a Transition on response renders the existing manual transitions unnecessary.

  1. From the Teaming Administration portlet on the initial Liferay portal window, click the plus sign (+) to the left of Form and view designers to expand this section and view the available designers. To add the Teaming Administration portlet to the Liferay portal window, See Adding the Teaming Administration Portlet to Your Home Page.

    Teaming Administration portlet
  2. Click Workflow designer.

    Form and view designers
  3. Expand Workflow processes.

    Workflow processes
  4. Click PTO Request.

    Workflow processes
  5. Expand Workflow process, expand State - Review, expand Transitions, then click the first Manual transition.

    State transitions
  6. In the options dialog on the right, click Delete.

    Transition options dialog
  7. In the confirmation dialog that appears, click OK to delete the Manual transition.

    Confirmation dialog
  8. Repeat this procedure to delete the remaining Manual transition for the Review state.

The Workflow section of an entry in the Review state now shows the question and answers for those users with the correct access rights (Managers).

Entry Workflow section