New-FimWorkflowDefinition -Xoml some content disappears RRS feed

  • Question

  • Hi,

    I created a script to deploy a FIM worklow.

    The wf definition contains a powershell activity (MIMWAL) and I noticed that the WF is created normally but the powershell variables are removed.

    i.e: if I have a PS activity like this (code shortened for legibility):

      <ns1:PowerShellActivity Script="$Workflow = $fimwf.WorkflowDictionary" x:Name="authenticationGateActivity1" />  


    Then the PS activity is created and presents in its body only rhe following:
    = .WorkflowDictionary

    Note: if I import the xoml using the FIM Portal page, the same xoml loads correctly. The issue occurs only when I deploy with New-FimWorkflowDefinition.

    Is this a known issue?



    Sunday, June 2, 2019 5:20 PM