optimajet/WorkflowServer

Error from getformbyflow Workflow api method for roles other than "Any Role"

Closed this issue · 1 comments

I am trying to use the Business flow section. I used the RoleBased example with callback Api sample at https://codesandbox.io/s/workflowservercallbackapi-57zb8. The steps are as below

  1. Created 4 dummy forms Default, User, Manager, and Accountant
  2. Created a business flow named Rolebased
    image
  3. Run the getformbyflow api method
    image
    And it shows an error rule with User is not implemented("One or more errors occurred. (Rule with name User is not implemented). InnerException: Rule with name User is not implemented"). My workflow is at state Draft. My doubt is why is it looking for rule named User. Shouldn't it use checkrole rule against the actor "User" to identify the find the form.
  4. Now if I change the Role in business flow to "Any Roles" it works

Also if I am wrong please help me in creating the User rule