Workflow doesn't trigger on change of AssignedToUser
I want to run a workflow whenever the AssignedToUser is updated on an incident, and is set to a specific user. I isolated this workflow in its own management pack so I could craft the condition as below. However, when I update the assigned to user, my workflow isn't triggered. Am I doing it wrong ? Or is this a bug or by design ?
<Rule ID="WorkflowSubscription_beda1dfa_06b2_41ea_a5a2_543411650eac" Enabled="true" Target="Connectors!System.WorkItem.SMARunbookActivity.WorkflowTarget" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100"><br> <Category>System</Category><br> <DataSources><br> <DataSource ID="DS" TypeID="SystemCenter!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule"><br> <Subscription><br> <InstanceSubscription Type="a604b942-4c7b-2fb2-28dc-61dc6f465c68"><br> <UpdateInstance><br> <Criteria><br> <Expression><br> <And><br> <Expression><br> <SimpleExpression><br> <ValueExpression><br> <Property State="Pre">$Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemAssignedToUser' TypeConstraint='CustomSystem_Library!System.Domain.User']/Property[Type='CustomSystem_Library!System.Domain.User']/UserName$</Property><br> </ValueExpression><br> <Operator>NotEqual</Operator><br> <ValueExpression><br> <Property State="Post">$Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemAssignedToUser' TypeConstraint='CustomSystem_Library!System.Domain.User']/Property[Type='CustomSystem_Library!System.Domain.User']/UserName$</Property><br> </ValueExpression><br> </SimpleExpression><br> </Expression><br> <Expression><br> <SimpleExpression><br> <ValueExpression><br> <Property State="Post">$Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemAssignedToUser' TypeConstraint='CustomSystem_Library!System.Domain.User']/Property[Type='CustomSystem_Library!System.Domain.User']/UserName$</Property><br> </ValueExpression><br> <Operator>Equal</Operator><br> <ValueExpression><br> <Value>Sabco</Value><br> </ValueExpression><br> </SimpleExpression><br> </Expression><br> </And><br> </Expression><br> </Criteria><br> </UpdateInstance><br> </InstanceSubscription><br> <PollingIntervalInSeconds>100</PollingIntervalInSeconds><br> <BatchSize>50</BatchSize><br> </Subscription><br> </DataSource><br> </DataSources><br> <WriteActions><br> <WriteAction ID="WA" TypeID="SystemCenter!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction"><br> <Subscription><br> <VisibleWorkflowStatusUi>true</VisibleWorkflowStatusUi><br> <EnableBatchProcessing>true</EnableBatchProcessing><br> <WindowsWorkflowConfiguration><br> <AssemblyName>Microsoft.EnterpriseManagement.ServiceManager.SMA.Workflows</AssemblyName><br> <WorkflowTypeName>Microsoft.EnterpriseManagement.ServiceManager.SMA.Workflows.ProcessWorkItem</WorkflowTypeName><br> <WorkflowParameters><br> <WorkflowArrayParameter Name="InstanceIds" Type="guid"><br> <Item>$Data/BaseManagedEntityId$</Item><br> </WorkflowArrayParameter><br> <WorkflowParameter Name="NotificationRulesEnabled" Type="boolean">False</WorkflowParameter><br> <WorkflowParameter Name="ParametersId" Type="guid">37a3b1e2-57b5-805a-a15e-60be136a3c21</WorkflowParameter><br> </WorkflowParameters><br> <RetryExceptions /><br> <RetryDelaySeconds>60</RetryDelaySeconds><br> <MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds><br> </WindowsWorkflowConfiguration><br> </Subscription><br> </WriteAction><br> </WriteActions><br> </Rule><br>
Answers