-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGet_Task_Comments.nwf
1 lines (1 loc) · 18.3 KB
/
Get_Task_Comments.nwf
1
<?xml version="1.0" encoding="utf-8"?><ExportedWorkflowWithListMetdata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ExportedWorkflowSeralized><?xml version="1.0" encoding="utf-8"?><ExportedWorkflow xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Title>Get Task Comments</Title><Description>Helps to get the comments from the approved or rejected task</Description><Configurations><ActionConfigs><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="false" CommentType="Auto"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel /><LLabel /><RLabel /><TLabel /><CustomComments /><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.NWWorkflowVariablesAdapter</Type><IsValid>true</IsValid><ConditionUse>None</ConditionUse><Parameters><Parameter Name="StartManually"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="StartOnCreate"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="StartOnChange"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="WorkflowName"><PrimitiveValue Value="Get Task Comments" ValueType="Text" /></Parameter><Parameter Name="WorkflowDescription"><PrimitiveValue Value="Helps to get the comments from the approved or rejected task" ValueType="Text" /></Parameter><Parameter Name="WorkflowDuration"><PrimitiveValue Value="-1" ValueType="Text" /></Parameter><Parameter Name="TaskListId"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="StartPage"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="VerboseLogging"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="Category"><PrimitiveValue Value="UserDefinedAction" ValueType="Text" /></Parameter><Parameter Name="ContentType"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="StartOnCreateCondition"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="StartOnChangeCondition"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="HistoryLogging"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="RequireManagePermission"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="HistoryListName"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="ChangeComments"><PrimitiveValue Value="Improve the query to target any site" ValueType="Text" /></Parameter><Parameter Name="Id"><PrimitiveValue Value="e06db4f0-b64a-44f4-8132-a42897ffea5b" ValueType="Text" /></Parameter><Parameter Name="SkipValidation"><PrimitiveValue Value="false" ValueType="Text" /></Parameter><Parameter Name="ContentTypeName"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="DisplayStatusColumn"><PrimitiveValue Value="true" ValueType="Boolean" /></Parameter><Parameter Name="StartFromMenu"><PrimitiveValue Value="false" ValueType="Boolean" /></Parameter><Parameter Name="StartFromMenuLabel"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="EcbId"><PrimitiveValue Value="00000000-0000-0000-0000-000000000000" ValueType="Text" /></Parameter><Parameter Name="CustomActionSequence"><PrimitiveValue Value="0" ValueType="Number" /></Parameter><Parameter Name="CustomActionIcon"><PrimitiveValue Value="" ValueType="Text" /></Parameter><Parameter Name="UsesConditionalStart"><PrimitiveValue Value="false" ValueType="Boolean" /></Parameter></Parameters><WorkflowVariables><Variable Name="paramAllComments" Required="false" StartupOptionsConfigured="false" ControlType="SingleLine" Type="Text" Initiate="false" Description="Previous and current comment " Direction="Output" RowIndex="-1" /><Variable Name="paramDepartmentName" Required="true" StartupOptionsConfigured="false" ControlType="SingleLine" Type="Text" Initiate="false" Description="" Direction="Input" RowIndex="-1" /><Variable Name="paramPreviousComments" Required="false" StartupOptionsConfigured="false" ControlType="SingleLine" Type="Text" Initiate="false" Description="All previous comments" Direction="Input" RowIndex="-1" /><Variable Name="paramTaskID" Required="false" StartupOptionsConfigured="false" ControlType="Integer" Type="Integer" Initiate="false" Description="Current running workflow ID" Direction="Input" RowIndex="-1" /><Variable Name="varTaskComments" Required="false" StartupOptionsConfigured="false" ControlType="MultipleLine" Type="Text" Initiate="false" Description="" Direction="None" RowIndex="-1" /><Variable Name="paramSiteURL" Required="true" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="Current Site URL" Direction="Input" RowIndex="-1" /><Variable Name="paramTasksListName" Required="true" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="It should be Workflow tasks all the time unless a change in the system" Direction="Input" RowIndex="-1" /></WorkflowVariables><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ToolboxInfo><Category>Sezad Common Actions</Category><ConfigurationDialog>UserDefinedAction.aspx</ConfigurationDialog><Icon>/_layouts/15/NintexWorkflow/Images/Activities/UserDefinedAction.png</Icon><IconToolbox>/_layouts/15/NintexWorkflow/Images/Activities/Small/UserDefinedAction.png</IconToolbox><IconWarning>/_layouts/15/NintexWorkflow/Images/Activities/Warning/UserDefinedAction.png</IconWarning></ToolboxInfo><ExtensionProperties /></NWActionConfig><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="false" CommentType="Auto"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel>Get Task Comments</BLabel><LLabel /><RLabel /><TLabel>Get comments</TLabel><CustomComments /><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.NWQueryListAdapter</Type><IsValid>true</IsValid><ConditionUse>None</ConditionUse><Parameters><Parameter DisplayName="CAML query" Name="Query"><RunNowOptions DisplayIndex="0" ControlType="XML" Required="true" GroupWithPrevious="false" /><PrimitiveValue Value="&lt;Query&gt;&#xA; &lt;Lists&gt;&#xA; &lt;List Title=&quot;{WorkflowVariable:paramTasksListName}&quot; /&gt;&#xA; &lt;/Lists&gt;&#xA; &lt;ViewFields&gt;&#xA; &lt;FieldRef Name=&quot;ApproverComments&quot; /&gt;&#xA; &lt;/ViewFields&gt;&#xA; &lt;Where&gt;&#xA; &lt;Eq&gt;&#xA; &lt;FieldRef Name=&quot;ID&quot; /&gt;&#xA; &lt;Value Type=&quot;Counter&quot;&gt;{WorkflowVariable:paramTaskID}&lt;/Value&gt;&#xA; &lt;/Eq&gt;&#xA; &lt;/Where&gt;&#xA;&lt;/Query&gt;&#xA;&#xA;" ValueType="Text" /></Parameter><Parameter Name="Output"><Variable Name="" Required="false" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="" Direction="None" RowIndex="-1" /></Parameter><Parameter Name="IsSetToBuilderMode"><PrimitiveValue Value="false" ValueType="Boolean" /></Parameter><Parameter Name="StoreRawValue"><PrimitiveValue Value="false" ValueType="Boolean" /></Parameter><Parameter DisplayName="Site URL" Name="BaseUrl"><RunNowOptions DisplayIndex="1" ControlType="SingleLine" Required="false" GroupWithPrevious="false" /><PrimitiveValue Value="{WorkflowVariable:paramSiteURL}" ValueType="Text" /></Parameter><Parameter Name="XmlEncodeCaml"><PrimitiveValue Value="true" ValueType="Boolean" /></Parameter><Parameter DisplayName="Item limit" Name="ItemLimitLookup"><RunNowOptions DisplayIndex="2" ControlType="None" Required="false" GroupWithPrevious="false" /><PrimitiveValue Value="" ValueType="Text" /></Parameter></Parameters><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ExtensionProperties /><ValueStorages><ValueStorageItems><ValueStorage VariableName="varTaskComments" ValueIdentifier="ApproverComments" VariableType="Text" /></ValueStorageItems></ValueStorages></NWActionConfig><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="false" CommentType="Auto"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel>Check if user has add comment</BLabel><LLabel>No Comment</LLabel><RLabel>Has Comment</RLabel><TLabel>Set a condition</TLabel><CustomComments /><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.WFIfElseAdapter</Type><IsValid>true</IsValid><ConditionUse>Child</ConditionUse><Condition xsi:type="NWConditionConfig" Name="If any value equals value"><Params><Param Name="operator"><PrimitiveValue Value="NotIsEmpty" ValueType="Text" /></Param><Param Name="left"><Variable Name="varTaskComments" Required="false" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="" Direction="None" RowIndex="-1" /><Coercion>AsDNString</Coercion></Param><Param Name="right"><PrimitiveValue Value="" ValueType="Text" /></Param></Params></Condition><ChildActivities><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="false" CommentType="Auto"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel /><LLabel /><RLabel /><TLabel>IfElseBranch</TLabel><CustomComments /><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.WFIfElseBranchAdapter</Type><IsValid>true</IsValid><ConditionUse>This</ConditionUse><ChildActivities><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="false" CommentType="Auto"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel>Keep Comments as it is</BLabel><LLabel /><RLabel /><TLabel>Set variable</TLabel><CustomComments /><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.SPSetVariableAdapter</Type><IsValid>true</IsValid><ConditionUse>None</ConditionUse><Parameters><Parameter Name="ValueType"><PrimitiveValue Value="Text" ValueType="Text" /></Parameter><Parameter Name="VariableName"><Variable Name="paramAllComments" Required="false" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="" Direction="None" RowIndex="-1" /></Parameter><Parameter Name="Value"><Variable Name="paramPreviousComments" Required="false" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="" Direction="None" RowIndex="-1" /><Coercion>AsDNString</Coercion></Parameter></Parameters><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ExtensionProperties /></NWActionConfig></ChildActivities><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ExtensionProperties /></NWActionConfig><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="false" CommentType="Auto"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel /><LLabel /><RLabel /><TLabel>IfElseBranch</TLabel><CustomComments /><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.WFIfElseBranchAdapter</Type><IsValid>true</IsValid><ConditionUse>This</ConditionUse><ChildActivities><NWActionConfig LCustLbl="false" RCustLbl="false" TCustLbl="false" BCustLbl="false" ShowCustomComments="true" CommentType="Custom"><HideUI>false</HideUI><Enabled>true</Enabled><InheritedEnabled>true</InheritedEnabled><BLabel /><LLabel /><RLabel /><TLabel>Build Comments</TLabel><CustomComments>Add current comment to the previous one and separate them with a break line</CustomComments><ExpectedDuration>-1</ExpectedDuration><Assembly>Nintex.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12</Assembly><Type>Nintex.Workflow.Activities.Adapters.NWBuildStringAdapter</Type><IsValid>true</IsValid><ConditionUse>None</ConditionUse><Parameters><Parameter DisplayName="Text" Name="Input"><RunNowOptions DisplayIndex="0" ControlType="MultiLine" Required="true" GroupWithPrevious="false" /><PrimitiveValue Value="{WorkflowVariable:paramPreviousComments}&#xA;&lt;blockquote&gt;&lt;p&gt;{WorkflowVariable:paramDepartmentName} at {Common:CurrentDate}, {Common:CurrentTime}:&lt;/p&gt;&#xA;&lt;footer&gt;{WorkflowVariable:varTaskComments}&lt;/footer&gt;&lt;/blockquote&gt;" ValueType="Text" /></Parameter><Parameter Name="Output"><Variable Name="paramAllComments" Required="false" StartupOptionsConfigured="false" ControlType="None" Type="Text" Initiate="false" Description="" Direction="None" RowIndex="-1" /></Parameter><Parameter Name="ParseTwice"><PrimitiveValue Value="false" ValueType="Boolean" /></Parameter></Parameters><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ExtensionProperties /></NWActionConfig></ChildActivities><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ExtensionProperties /></NWActionConfig></ChildActivities><Outcomes /><AssociationColumns /><StartOnCreateConditions /><StartOnChangeConditions /><LogMessage>false</LogMessage><HistoryNote /><HasDefaultMessage>false</HasDefaultMessage><UserContext>Default</UserContext><SelectedUserContext>Default</SelectedUserContext><CustomWorkflowStatuses /><ExtensionProperties /></NWActionConfig></ActionConfigs></Configurations><Id>d239521d-9b86-4be7-8d58-a84fbb7e7b8b</Id></ExportedWorkflow></ExportedWorkflowSeralized><ListReferences /><Version>3210</Version><WorkflowType>UserDefinedAction</WorkflowType><WorkflowId>e06db4f0-b64a-44f4-8132-a42897ffea5b</WorkflowId></ExportedWorkflowWithListMetdata>