Replace keyword text during run time

You can use keywords to replace text in work instructions and email subjects and bodies. This text is replaced with keyword values in a workflow at run time.

Procedure

  1. In the navigator, click Workflow > Workflows.
  2. In the resource list, select the workflow that you want to work with. If no workflow exists, create a new workflow.
  3. In the Displays panel, click Workflow Management > Workflow Editor.
  4. Click the Workflow Editor tab.
  5. Drag and drop a Local Subprocess into the workflow and double-click it, or double-click an existing subprocess.
    Note: If required, configure the workflow.
  6. There are two types of keyword activities you can use.
    Insert...To...
    Replace Keywords replace keywords in a block of text. Go to step 7.
    Update Work Instruction Keywords ensure that the change in the value of a workflow variable is reflected in the work instruction text. Go to step 8.
  7. To use the Replace Keywords activity, perform the following procedure.
    1. Insert a Replace Keywords activity.
    2. In the Keyword Text field, bind the activity to the property whose text you want to replacement .
      The activity's output is the text that was defined to replace the keyword.
  8. To automatically update keywords in work instructions when the workflow begins, insert the Update Work Instruction Keywords activity.
    Note: This activity is used only if the values in a work instruction should be updated during the execution of a task step.
  9. Click Save.