Forum Discussion

msruthys's avatar
msruthys
New Contributor II
3 months ago

Status of a workflow

hi all,

I wanted to retrieve a workflow status and form status. 

I am able to do this using the data adapter method query for the same.

I also wanted to assign a user responsible for each workflow and retrieve that info .

I was thinking of doing this using one of the workflow text properties. How will i be able to retrieve that info into my status report? has anyone done something similar?

 

  • KarlT's avatar
    KarlT
    Contributor III

    In a Data Set business rule you could use something like this for the text

    Dim wfInfo As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk)
    				Dim wftext1 As String = wfInfo.GetAttributeValue(scenariotypeid.Actual, SharedConstants.WorkflowProfileAttributeIndexes.Text1)	

    workflow status can be retrieved using:

    Dim wfInfo As WorkflowInfo = BRApi.Workflow.Status.GetWorkflowStatus(si, wfClusterPk, throwOnError)

    There is also a standard method query to retrieve workflow status via a data adaptor: