Skip to main content
October 9, 2024

Status of a workflow

  • October 9, 2024
  • 1 reply
  • 0 views

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

October 14, 2024

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:


KarlT_0-1728902867771.png