optimajet / WorkflowServer

Workflow Server is a ready-to-use Workflow Engine-based application that you can deploy into your infrastructure. It can be integrated with NodeJS, PHP, Ruby, .NET, or Java applications via a REST API. Workflow Server is a key component for managing the lifecycle of business objects within your enterprise.
https://workflowserver.io
191 stars 54 forks source link

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

Closed ja8669181 closed 4 years ago

ja8669181 commented 4 years ago

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

optimajet commented 4 years ago

Fixed in WFS 2.6 https://workflowengine.io/downloads/server/