OCh_Workflow_State 3.12 incompat with Mx 10.24? Expects Workflow but WorkflowEvent,WorkflowRecord,WorkflowActivityRecord

0
Hi. I'm new to workflows. We use Mendix 10.24.13 and I downloaded the latest compatible WorkflowCommons 3.12.1. In the Readme it says to setup workflow event handlers. I tried to but the OCH_ mf params are incompatible. Two compile errors are shown:The microflow selected for the event handler should accept parameters of type 'System.WorkflowEvent', 'System.WorkflowRecord' and 'System.WorkflowActivityRecord'. Instead the selected microflow 'WorkflowCommons.OCh_Workflow_State' expects 'Workflow (System.Workflow)'.The microflow selected for the event handler should accept parameters of type 'System.WorkflowEvent', 'System.WorkflowRecord' and 'System.WorkflowActivityRecord'. Instead the selected microflow 'WorkflowCommons.OCh_WorkflowUserTask_State' expects 'UserTask (System.WorkflowUserTask)'.https://i.sstatic.net/tX1OBayf.pnghttps://i.sstatic.net/bukzXfUr.png
asked
1 answers
1

Hi Ilya


I found out that the workflows events are depricated.

So the microflow OCh_Workflow_State and OCh_WorkflowUserTask_State are not useful anymore


Instead community commons asked us to to use WFEH_WorkflowEvent_AuditTrail microflow.


To enable audit trail for all workflows in your app, follow the steps below:

  1. Go to App Settings > Workflows tab.
  2. In the event handlers section, click the New button.
  3. In the Add event handler dialog box, give the new event handler a name in the Name property (for example: AuditTrail).
  4. In the When section, select the events you want to subscribe to from the list.
  5. In the What section, select the WFEH_WorkflowEvent_AuditTrail microflow from the list. You can find it in the module (UseMe > Event handlers).
  6. To view the audit trail, a user needs to be assigned the Administrator module role.


Read the documentation for more clarity.

https://docs.mendix.com/appstore/modules/workflow-commons/#features-1


Hope it helps 🙂

answered