The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

Onestreamer92's avatar
Onestreamer92
New Contributor II
1 year 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?

 

1 Reply

  • KarlT's avatar
    KarlT
    Icon for OneStream Employee rankOneStream Employee

    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: