Hello,
I am using exclusive gateway for approve and decline process but while using gateway sequence flow condition by using only approve they give me error as boolean
What I put here I am little bit confused.
Hello,
I am using exclusive gateway for approve and decline process but while using gateway sequence flow condition by using only approve they give me error as boolean
I would maybe use a drop down instead.
If the variable created by the dropdown is called status
and the values are either approved
or declined
then your expression on the sequence flows leaving your gateway should read
status = approved
and
status = declined
Hi @Niall Sir,
as per your comment i used dropdown
and that condition is working fine.
but while running the workflow it showing wrong flow on the operate when i select the Approved it is showing declined. you can see my attached file.
Regards,
Supriya K
Hi @Supriya , the value approved
or declined
is stored in the variable Approval
. Refer the 1st screenshot.
So the condition expression should be
Approval = "approved"
Approval = "declined"
Thank you @aravindhrs it is working now.
but when i am testing with endpoint means i am starting process by this endpoint by using zeebe client
PUT - http://localhost:8080/rfpworkflow
body - {ârfpvalueâ:1000}
then error coming like this on the gateway Expected result of the expression ârfpvalue >= 2000â to be âBOOLEANâ, but was âNULLâ.
i have attached files plz check
The output of your DMN table says boolean - when in fact itâs producing a string. So you need to change that.
Thanks @aravindhrs for spotting my missing quotes in that example
i did changes but still error same while using endpoint but when i am sarted instance from modeler then it is working fine.
i change data type but still coming. please help me here.
dropdown.form (771 Bytes)
purchaseamount (2).dmn (2.3 KB)
rfpworkflow (1).bpmn (17.3 KB)
i added here my files please check and review. i did not get the root cause where i am doing wrong while checking PUT- http://localhost:8080/rfpworkflow.
When youâre starting your process from the PUT, the variable rfpvalue is not getting set. Since it doesnât match either condition in the DMN, the âApprovalByâ and âApprovedâ wonât be set. ⌠However that doesnât matter at the point youâre getting the error, because your flows arenât looking at âApprovedâ theyâre only looking at rfpvalue. (Side note: rfpvalue = 2000 will now cause you issues since it matches on both flows)
Where exactly did you get the details for the PUT statement youâre using?
Is that a custom endpoint that youâve written?
i am following this project link GitHub - berndruecker/customer-onboarding-camunda-8-springboot: A simple onboarding process example using BPMN, Camunda Cloud, Java, Spring Boot and REST for start custom endpoint
and i have created the class.
The line you commented out (line 34) is what sets the variable.
I donât know Spring well enough to guide you on how to parse the body to look for your variables.
Once you have the rfpvalue in your class, then you can attach it into the call to the process engine (as shown in the commented line)
Hi @aravindhrs, as per your suggestion i did changes. before it is working now it is giving same error.
Expected result of the expression ârfpvalue >= 2000â to be âBOOLEANâ, but was âNULLâ.
and i am explain you what i am doing here,
my workflow is on purchase process order.
You will continue to get that as long as you have the line commented out and try to use the PUT interface. If you use the âStart Instanceâ from modeler, you should be fine.
The images in your last post do not contain any parallel gateways.