Export Process State
Back to
Related topics
Looking for Winshuttle Composer Plugins?
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 column of a SharePoint list.
Value Pair | Description |
Autocheckout | Allowed values = "true" or "false". If this argument is not specified, default value of "false" will be used. If set to "true" and a list item requires checkout before updating and it is not already checked out, then the list item will automatically be checked out/in when the list value is updated. |
column | The name of the SharePoint list 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 commaseparated and first. Defaults to commaseparated if it is a string field, first otherwise. |
xpath | XPath to navigate to the node in the process state data. |
Example
- 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 this description. Following is an example of an XML description of a current process that is running that extracts the process due date of 9/12/2008 1:55:54 PM from the process state XML and inserts it into the SharePoint column Process Due Date.
<ProcessState>
<ProcessDefinition id="1193" ordinal="1193">
StudioBasic Form Process</Name>
<Description></Description>
<Duration>24</Duration>
<DurationString>1 D</DurationString>
<SwimLaneDefinitions>
<SwimLaneDefinition>
StudioProcessOwner</Name>
<Description></Description>
<SwimLaneSignature>vLaRWPoHfwUvsWZl4D7PQwGG</SwimLaneSignature>
</SwimLaneDefinition>
<SwimLaneDefinition>
StudioOriginator</Name>
<Description></Description>
<SwimLaneSignature>w2jB8To2nAJmNXFEjNDZYwGG</SwimLaneSignature>
</SwimLaneDefinition>
<SwimLaneDefinition>
StudioCMan</Name>
<Description></Description>
<SwimLaneSignature>PO4Obb3MJ0C0D5gdP5ZhMAGG</SwimLaneSignature>
</SwimLaneDefinition>
</SwimLaneDefinitions>
<SwimLaneInstances>
<SwimLaneInstance>
StudioCMan</Name>
<Description></Description>
<SwimLaneSignature>PO4Obb3MJ0C0D5gdP5ZhMAGG</SwimLaneSignature>
<WorkflowParticipants>
<WorkflowParticipant>
<FullName>Contributor1</FullName>
contributor1@sharvis.com<Email>
</Email>
<LoginName>WS\contibutor1</LoginName>
</WorkflowParticipant>
</WorkflowParticipants>
</SwimLaneInstance>
</SwimLaneInstances>
</ProcessDefinition>
<CurrentUser>
<FullName>Contributor1</FullName>
contributor1@ws.com<Email>
</Email>
<LoginName>WS\contributor1</LoginName>
</CurrentUser>
<Process id="5827" ordinal="5827">
StudioBasic Form Process - Basic 9/11/2008 1:55:53 PM</Name>
<CreatedDate>9/11/2008 1:55:54 PM</CreatedDate>
<CreatedDateTicks>633567381542330000</CreatedDateTicks>
<DueDate>9/12/2008 1:55:54 PM</DueDate>
<DueDateTicks>633568245542330000</DueDateTicks>
<CompletedDate></CompletedDate>
<CompletedDateTicks>0</CompletedDateTicks>
<Status>Running</Status>
http://ws/svform2<Url>
</Url>
<SwimLaneDefinitions>
<SwimLaneDefinition>
StudioProcessOwner</Name>
<Description></Description>
<SwimLaneSignature>vLaRWPoHfwUvsWZl4D7PQwGG</SwimLaneSignature>
</SwimLaneDefinition>
<SwimLaneDefinition>
StudioOriginator</Name>
<Description></Description>
<SwimLaneSignature>w2jB8To2nAJmNXFEjNDZYwGG</SwimLaneSignature>
</SwimLaneDefinition>
<SwimLaneDefinition>
StudioCMan</Name>
<Description></Description>
<SwimLaneSignature>PO4Obb3MJ0C0D5gdP5ZhMAGG</SwimLaneSignature>
</SwimLaneDefinition>
</SwimLaneDefinitions>
<ProcessDefinition id="1193" ordinal="1193">
StudioBasic Form Process</Name>
<Description></Description>
<Duration>24</Duration>
<DurationString>1 D</DurationString>
<SwimLaneDefinitions>
<SwimLaneDefinition>
StudioProcessOwner</Name>
<Description></Description>
<SwimLaneSignature>vLaRWPoHfwUvsWZl4D7PQwGG</SwimLaneSignature>
</SwimLaneDefinition>
<SwimLaneDefinition>
StudioOriginator</Name>
<Description></Description>
<SwimLaneSignature>w2jB8To2nAJmNXFEjNDZYwGG</SwimLaneSignature>
</SwimLaneDefinition>
<SwimLaneDefinition>
StudioCMan</Name>
<Description></Description>
<SwimLaneSignature>PO4Obb3MJ0C0D5gdP5ZhMAGG</SwimLaneSignature>
</SwimLaneDefinition>
</SwimLaneDefinitions>
</ProcessDefinition>
<Originator>
<FullName>Designer1</FullName>
designer1@ws.com<Email>
</Email>
<LoginName>WS\designer1</LoginName>
</Originator>
<AssignmentList>
<Assignment id="13827" ordinal="13827">
<Comment>
<Line></Line>
</Comment>
<FullComment></FullComment>
<Status>Completed</Status>
<CreatedDate>9/11/2008 1:55:54 PM</CreatedDate>
<CreatedDateTicks>633567381543130000</CreatedDateTicks>
<ReviewDate>9/11/2008 1:56:25 PM</ReviewDate>
<ReviewDateTicks>633567381856570000</ReviewDateTicks>
<DueDate>9/12/2008 1:55:54 PM</DueDate>
<DueDateTicks>633568245543130000</DueDateTicks>
<CompletedDate>9/11/2008 1:56:34 PM</CompletedDate>
<CompletedDateTicks>633567381940000000</CompletedDateTicks>
<Definition id="9442">
StudioActivity 4</Name>
<Description></Description>
<Duration>24</Duration>
<DurationString>1 D</DurationString>
<Type>Activity</Type>
<SwimLane ordinal="0">
StudioCMan</Name>
<Type>PersonFromRole</Type>
</SwimLane>
</Definition>
<Assignee>
<FullName>Contributor1</FullName>
contributor1@ws.com<Email>
</Email>
<LoginName>WS\contributor1</LoginName>
</Assignee>
</Assignment>
<Assignment id="13826" ordinal="13826">
<Comment>
<Line></Line>
</Comment>
<FullComment></FullComment>
<Status>Completed</Status>
<CreatedDate>9/11/2008 1:55:54 PM</CreatedDate>
<CreatedDateTicks>633567381542670000</CreatedDateTicks>
<ReviewDate></ReviewDate>
<ReviewDateTicks>0</ReviewDateTicks>
<DueDate>9/10/2008 1:55:54 PM</DueDate>
<DueDateTicks>633566517542670000</DueDateTicks>
<CompletedDate>9/11/2008 1:55:54 PM</CompletedDate>
<CompletedDateTicks>633567381542970000</CompletedDateTicks>
<Definition id="9445">
StudioStart 1</Name>
<Description></Description>
<Duration>-24</Duration>
<DurationString>-1 D</DurationString>
<Type>Start</Type>
<SwimLane ordinal="1">
StudioOriginator</Name>
<Type>Person</Type>
</SwimLane>
</Definition>
<Assignee>
<FullName>Designer2</FullName>
designer2@ws.com<Email>
</Email>
<LoginName>WS\designer2</LoginName>
</Assignee>
</Assignment>
</AssignmentList>
</Process>
</ProcessState>