Introduction

The latest How To topics are available in the K2 Five User Guide or the K2 Cloud User Guide’s How to section.
Output mappings have been added to the Start the Workflow rule action. In addition, the workflow properties have been enhanced to include properties such as Originator details, Priority, Start Date, View Flow URL and more. These fields can now be used as output mappings in the Start the Workflow action and the Open the worklist item action.

Implementation Details

The workflow properties are available in the output mappings tab when configuring the Start the Workflow action and the Open the worklist item action.
Image
Image

Example Scenario

In the scenario below we are using a Form with two Views and three Form controls. When the user clicks on the Create button, the Form controls will be populated with the workflow information.

Follow the steps below to set up the scenario:

  1. Create an Item View and a List View using any information
  2. Create a Form containing these two Views.
  3. Add three label controls to the Form and next to the labels three Text Box controls
    Image
  4. Save the Form
  5. Create a workflow that will start when the Create button is clicked on the Item View
  6. Complete the workflow with relevant data and deploy the workflow
  7. Open the Form and navigate to the Rules
  8. Select the applicable state that is used for the start action and edit the rule On xxx Item, when Create Button is Clicked
    Image
  9. Click on configure next to the then start the xxx Workflow action
  10. Click on the Output Mappings tab at the top
  11. Drag the Priority, Start Date and View Flow URL fields from the context browser into the text boxes created previously as shown below
    Image
  12. Click Finish and Finish again to save the rule
  13. Click Finish to save the Form
  14. Run the Form and complete information on the Form
  15. Note that the three controls at the bottom are empty at this stage
    Image
  16. Click the Create button
  17. Note that the three controls are populated with the workflow information
    Image

The same principle can be applied to the Open the worklist item action