locked
Affected User receives notification when Manual Activity is Completed RRS feed

  • Question

  • I need to notify the Affected User when an activity of a Service request is complete.  I am using several Manual Activities inside of a Parallel Activity.  I found this: http://www.scsm.se/?p=948 but he is using Review Activities and the same steps didn't seem to work for me.  Do I need to do something different? Any ideas?

    - Get on the floor, do that dinosaur

    Wednesday, May 15, 2013 6:29 PM

Answers

All replies

  • <WindowsWorkflowConfiguration>
                    <AssemblyName>Microsoft.EnterpriseManagement.Notifications.Workflows</AssemblyName>
                    <WorkflowTypeName>Microsoft.EnterpriseManagement.Notifications.Workflows.SendNotificationsActivity</WorkflowTypeName>
                    <WorkflowParameters>
                      <WorkflowParameter Name="SubscriptionId" Type="guid">$MPElement$</WorkflowParameter>
                      <WorkflowArrayParameter Name="DataItems" Type="string">
                        <Item>$Data/.$</Item>
                      </WorkflowArrayParameter>
                      <WorkflowArrayParameter Name="InstanceIds" Type="string">
                        <Item>$Data/BaseManagedEntityId$</Item>
                      </WorkflowArrayParameter>
                      <WorkflowArrayParameter Name="TemplateIds" Type="string">
                        <Item>d6391b96-a77f-0a57-255a-76bf054084d0</Item>
                      </WorkflowArrayParameter>
                      <WorkflowArrayParameter Name="PrimaryUserRelationships" Type="string">
    <Item>$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' 
    
    TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemAffectedUser' 
    
    TypeConstraint='CustomSystem_Library!System.User']$</Item>
    </WorkflowArrayParameter>
                    </WorkflowParameters>
                    <RetryExceptions />
                    <RetryDelaySeconds>60</RetryDelaySeconds>
                    <MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
                  </WindowsWorkflowConfiguration>

    Thats a snippet of the workflow code if necessary.  

    in addition, I am basing the subscription off of a queue.  so there is no actually criteria set in the subscription.  I just want a notification sent when criteria X and Criteria Y are met.


    - Get on the floor, do that dinosaur

    Wednesday, May 15, 2013 9:24 PM
  • I fixed it using http://gallery.technet.microsoft.com/See-Parent-IR-or-SR-3b8804bf

    - Get on the floor, do that dinosaur

    • Marked as answer by Pete Barbuto Monday, May 20, 2013 3:27 PM
    Monday, May 20, 2013 3:27 PM