I’m using a curl command to create a case and I’m passing a parameter called wfData (as shown in the screenshot). However, I’ve noticed that even if I don’t pass wfData, the case still gets created successfully.
Now, when I do pass the wfData parameter — what is the expected behavior? Should the output/result from the Reels workflow be automatically attached to the case response?
For example, when I open the case in Workbench using the created caseID, should it include a Reels result object? Because in my testing, it doesn’t. I’m wondering if I’m doing something wrong with the payload format when sending the request.
I’m still unclear about the exact role of the Reels integration in this assignment. Can someone please explain what it’s supposed to do, and what the expected outcome is when we pass wfData during case creation?
1 Like
Hi @shubham.dhamne,
It will create the case successfully.
wfData is data used for BPM workflow
Hey @shubham.dhamne , the assignment assumes that you have completed a reels assignment. And, the workflow that is being invoked takes the process variable step_rules_request as an input and internally triggers a Reels Workflow which is being passed as a configuration here.
So, if you have a workflow in and have deployed it, it invoke that Reels Workflow with the above Workflow Id.
Here’s my current understanding — I’d appreciate clarification on whether this is correct:
-
Normally, in a jBPM project, we set up both STP and NSTP scenarios.
-
A method inside jBPM can call the Reels workflow, which applies rules to decide whether a case is STP or NSTP.
-
Based on that decision:
-
jBPM generates a Swagger spec with APIs to create and manage cases (e.g. create case instance, update case, decision-making).
-
We can use Postman or Swagger UI to create a case via those APIs, optionally passing wfData (the input for Reels rules).
-
Once the case is created, it appears in Alpha Workbench:
-
Depending on their decisions, the case is either approved or rejected and the workflow completes.
Now, in this assignment, steps 1 to 4 (jBPM, Reels, Swagger generation) are already done for us. So no need of doing anyting about reels in assignment correct?
@Sam
1 Like