I've been research jBPM for the past month, but i still struggle with some of its APIs
1. First one is set process instance variables.
- I use /rest/execute in attempt to use SetProcessInstanceVariablesCommand but with no luck
- Here is my request
Request body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command-request>
<deployment-id>ved:PrinterManagement:1.0</deployment-id>
<set-process-instance-variables processInstanceId="5">
<parameter>
<item key="NVRSD_UID">
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">11</value>
</item>
</parameter>
</set-process-instance-variables>
</command-request>
The request response with status 200, and data:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command-response>
<deployment-id>ved:PrinterManagement:1.0</deployment-id>
</command-response>
Result: var NVRSD_UID not set in process instance
2. Second one is way get task input
- I can't figure out the way to get input of some task. E.g: task A want id as String, imported_date as Date
- I've tried using showTaskForm, but that API is such a pain, i can't embedded in my client application (because of cross domain),
- and jbpm-forms-rest-integration.js also didn't work because it make unauthorized request (401)
Please someone help me with these 2 problems.
I'm installed jBPM 6.5.0 Final on Ubuntu 14.04