25.1.9.1.7.4 Creating the Human Task Instance

Create a human task instance and store its task ID and actual owner in workflow variables.

The Get Two Numbers activity of type Human Task - Create shown below configures its Definition property to use the Provide Two Random Numbers task definition. Notice how it uses the special system substitution value APEX$WORKFLOW_INITIATOR to pass along the username who started the workflow as the initiator of the task instance it's creating. The Task ID Item and Owner property values name two workflow variables V_TWO_NUMBERS_TASK_ID and V_PROVIDING_USER that will store the task id and actual owner of the task instance upon completion.

Figure 25-31 Configuring a Human Task - Create Activity to Use a Task Definition