0

Workflow Framework: Accessing Workflow Data from within a Workflow or Task Logicnet

  • updated 3 yrs ago

In addition to accessing workflow and task data from a storage table, you can also access this data from within the session context. In a workflow logicnet it is possible to access the following data:

  • task_details: This is the data structure that contains all metadata of the currently active task within the workflow. It includes the following data options:
    Field Name Description/Use
    type This is the task type.
    selected_option_parameters These are the design parameters belonging to the selected option.
    id This the database record identifier for the task.
    workflow This is the database record identifier for the workflow to which the task belongs.
    workflow_root This is the database record identifier for the root workflow to which the task belongs.
    locked This flag indicates whether the task is locked or not.
    user_id This is the identifier for the user that last opened the task.
    status This is the status of the task.
    selected_option This is the selected output of the task.
    roles These are the user roles that are associated with the task.
    subject_line This is the title of the task.
    object_id This is the ID of the database record in the generic_task_storage table that stores the data for the workflow instance to which the task belongs.
    created This is the date on which the task was created.
    last_updated This is the date on which the task was last updated.
  • WorkflowStarterParams.data: At the start of the workflow logicnet this contains the input data the system passes into the workflow from the Start Workflow task node.
  • dataobject_data: This is the data object that contains the actual task data.

 

While the user or system executes a task the following context information is available:

  • dataobject_data: This is the data object of the workflow and the system saves it when a task is closed.
  • _taskmetainfo: The metadata is defined in the task_details section above.

 

Tasks and workflows run as local data.

When a user or the system starts a workflow the workflow logicnet runs in a WorkflowContext and the WorkflowStarterParams contains the input data for that workflow.

  

When a user or the system starts a task the task logicnet runs in a task_scope context. When the task is closed and the workflow logicnet steps forward the workflow logicnet runs in the TaskContext.

 

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 3 yrs agoLast active
  • 23Views
  • 2 Following

Home