none
What to do if a Workflow won't run? MA is stuck in Rerun!

    Frage

  • There is a Change Request, and there are 4 Manual Activities on it. 

    The first MA is stuck in Rerun, all following MA's are stuck in Completed state.

    What shall I do?

    Dienstag, 14. Februar 2012 13:21

Alle Antworten

  • Hi Dan,

    What is the status of the Change Request at this point?


    Patrik Sundqvist Solutions Architect @ Gridpro AB Blog: http://blogs.litware.se

    Sonntag, 19. Februar 2012 10:47
  • The parent Change Request is in a Completed state now.

    But at my other customer there is a similar situation, one activity is stuck in Rerun state, but there the parent change request is InProgress state.

    Montag, 20. Februar 2012 10:38
  • Hi Dan,

    It sounds like you're caught in a "catch 22".

    Since the parent CR is now closed, I would guess that the internal workflows managing re-run ignores it. Interesting... how did you end up in this state? :)

    You can set the status of the CR or the activity using PowerShell. The only question is what you want to accomplish. Would you like to re-run from the actvivity currently set to "re-run"?


    Patrik Sundqvist Solutions Architect @ Gridpro AB Blog: http://blogs.litware.se


    Montag, 20. Februar 2012 11:18
  • Patrik, I don't know how we get here, but users are clicking on everything they see, but still I cannot imagine how this happened...
    Montag, 20. Februar 2012 13:19
  • :)

    So do you just want to set the activity status to "completed"?

    If so, here's a PowerShell command (you need to have smlets installed) that will change the status of a named activity to "completed".

    $activity = get-scsmclass system.workitem.activity$|Get-SCSMObject -Filter "Name -eq MA10925"
    $completed = Get-SCSMEnumeration activitystatusenum.completed
    Set-SCSMObject -SMObject $activity -Property Status -Value $completed


    Patrik Sundqvist Solutions Architect @ Gridpro AB Blog: http://blogs.litware.se

    Montag, 20. Februar 2012 14:02