You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Purpose

Use Cases

Start a Workflow on demand

  • Cmdlets to add an order to a workflow
    # connect to a JOC Cockpit instance using certificate authentication and preselecting Controller
    PS C:\> Connect-JS7 -Url https://joc-2-0-secondary.sos:7543 -KeystorePath "c:/users/me/client_certificate.p12" -Id testsuite
    
    # add an order to a workflow and provide arguments
    PS C:\> $order = Add-JS7Order -OrderName EOD91 -WorkflowPath /TestCases/EODReports -Arguments @{ 'fullReport'=$true; 'reportScope'=3; "reportTitle"="EOD Processing Report" }

Check the Status of an Order in a Workflow

  • Cmdlets to add an order to a workflow
    # connect to a JOC Cockpit instance using certificate authentication and preselecting Controller
    PS C:\> Connect-JS7 -Url https://joc-2-0-secondary.sos:7543 -KeystorePath "c:/users/me/client_certificate.p12" -Id testsuite
    
    # add an order to a workflow and provide arguments
    PS C:\> $order = Get-JS7Order -RegularExpression "EOD91$"
    
    # display results
    PS C:\> $order
    
    orderId       : #2021-03-19#P0000004603-tcsAllDayWorkflowSingle_001
    arguments     : @{var_required_number=21; var_required_string=s21; var_required_boolean=False}
    workflowId    : @{path=/TestCases/Schedules/tcsAllDayWorkflow_001; versionId=25ef143e-9d2f-4425-82ac-25ba2cfd189f}
    state         : @{severity=1; _text=PENDING}
    attachedState : @{TYPE=Attached}
    agentId       : agent_001
    position      : {0}
    scheduledFor  : 1616131800000
    requirements  : @{parameters=}
    
    orderId       : #2021-03-20#P0000004644-tcsAllDayWorkflowSingle_001
    arguments     : @{var_required_number=21; var_required_string=s21; var_required_boolean=False}
    workflowId    : @{path=/TestCases/Schedules/tcsAllDayWorkflow_001; versionId=25ef143e-9d2f-4425-82ac-25ba2cfd189f}
    state         : @{severity=1; _text=PENDING}
    attachedState : @{TYPE=Attached}
    agentId       : agent_001
    position      : {0}
    scheduledFor  : 1616218200000
    requirements  : @{parameters=}
    
    # display order state
    PS C:\> $order[0].state
    
    severity _text
    -------- -----
           1 PENDING


x

  • No labels