5

I am using Opensource formsflow.ai version v4.0.2. This is the Repo Link. I could get the Repo up and Running using docker deployment as instructed.

I had created a form and BPMN workflow for a specific use-case in formsflow.ai. The BPMN workflow is similar to the examples provided in the formsflow.ai opensource. This workflow consists of 4 statuses eg: New, Approved, Rejected, and Completed as shown Below. But when I am submitting the application from the client the application history is not getting created.

My Custom Workflow

I am not sure what went wrong here, can anyone please help me with a solution. Could see the sample workflows they provided created history but not my custom Workflow.

crystalthinker
  • 1,200
  • 15
  • 30

1 Answers1

9

You should use Application Audit Listener as mentioned in the document here.

org.camunda.bpm.extension.hooks.listeners.ApplicationAuditListener
This component can be used on any event of task or execution. Upon configuration, this send value from cam variables: "applicationStatus" and "formUrl" to formsflow.ai system for capturing audit.

John
  • 666
  • 1
  • 9
  • 22
  • 2
    Thanks, I missed it. Worked like a charm :) – crystalthinker Aug 10 '21 at 15:25
  • What is the point of writing an additional audit trail when the embedded process engine already does so ootb? And if so, why not use a generic hook and instead manually register listeners per task? – rob2universe Aug 11 '21 at 03:50
  • 1
    @rob2universe in formsflow.ai there is a separate audit maintained based on the custom status as mentioned by the post owner. This audit is maintained on a separate component and displayed that during each action/stage. The problem with the generic hook is that the audit is generated newly each time, the parameters get changes from the workflow based on actions, so to capture that we cannot use generic hook. – John Aug 11 '21 at 05:05
  • The onTaskEvent hook triggers on any state change of a task, without explicit registration of a listener. – rob2universe Aug 11 '21 at 06:20