Export Process State Plug-in Properties

The Export Process State plug-in allows you to export the current status of a workflow. You can export the status of a single node, multiple nodes, or an entire workflow. The status values are placed in the solution column.

On this page


Download a sample XML file (.ZIP)Download sample XML file (.zip)

This XML file (contained in a .ZIP file) contains sample XML from the Export Process State plug-in.

Export Process State Plug-in - Tips and best practices

Back to top
  • The Export Process State plug-in should not be used in conjunction with columns that are promoted from form fields because the column could be modified by the end user when routing the form.

Export Process Plug-in Properties table

Back to top

Value Pair

Description

column

The name of the solution's column to which you want to export the value(s).

multinodebehavior

What the system should do if multiple nodes are selected by the XPath.

Options are comma separated and first. Defaults to comma separated if it is a string field, otherwise it defaults to First.

Note: Comma separated is not valid with non-string field types.

xpath

XPath to navigate to the node in the process state data.

Export Process State -Example - Find who is assigned to a swimlane

Back to top

In this example we want to find out who is assigned to the JEApprover swimlane because we used a Query Participant Resolver to assign someone so we can see who the approver. (In this case, we used this method in an Excel-based workflow, but we could also use it for a form-based workflow as well.)

The resolver is used to find the Full Name of the person assigned to that swimlane:

xpath = /ProcessState/Process/SwimLaneInstances/SwimLaneInstance[Name='JEApprover']/WorkflowParticipant/FullName

Note:

  • You could change FullNametoLoginName at the end of the string.
  • You could also replace [Name='JEApprover] with [Name='yourswimlanename']. ( In our example, we are populating a column called JEApprover.)
  • The Multinode Behavior setting is set to comma separated in case more than one result is returned.

Export Process State - Example - Extract due date

Following is an example of an XML description (download this sample file as an example ) of a current process that is running.

The process extracts the Process Due Date of 9/12/2008 1:55:54 PM from the process state XML and inserts it into the column Process Due Date. Download the sample XML file (at right) for reference.

Example - Property Settings

  • xpath - /ProcessState/Process/DueDate
  • column - Process Due Date

The xpath referenced in the plug-in is used to navigate to different parts of data in the description.