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
BeatlesForever
1 year agoNew Contributor III
WorkflowEventHandler AfterEvent Action
Hello, I am currently working on the Business Rule WorkflowEventHandler to update a custom table when certain tasks are manually completed in a workflow. The scripts shown in the screenshot are loca...
MarcusH
1 year agoValued Contributor
This works for me on an item that has input forms:
Dim wfStatus As WorkflowInfo = BRApi.Workflow.Status.GetWorkflowStatus(si, si.WorkflowClusterPk, True)
Dim wfTask As TaskInfo = wfStatus.GetTask(New Guid(SharedConstants.WorkflowKeys.Tasks.InputForms))
If Not wfTask Is Nothing Then
If wfTask.Status = WorkflowStatusTypes.Completed Then
.......
BeatlesForever
1 year agoNew Contributor III
Many thanks, Marcus. I tested your code with a workflow that ends with the Import step. It only enters the Complete section when the task status is "InProcess." I have created a ticket to request OS support.
Related Content
- 7 months ago