camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.1k stars 1.55k forks source link

I can use the serialized string output of GetTask when updating a task via rest #2520

Open ThorbenLindhauer opened 3 years ago

ThorbenLindhauer commented 3 years ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-12901
Reporter NYBzR2x
What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.
Has restricted visibility comments false

User story

As a user, I want to use the serialized String output of Get Task Variable REST API directly in the Put Task variable REST API, so that I can complete my workflow without pre-processing the variables.

Background

Currently, the user needs to add the double quotes in the String value and escape it in the PUT request body (as shown below). 

{
    "type": "Object",
    "value": "\"someString\"",
    "valueInfo": {
        "objectTypeName": "java.lang.String",
        "serializationDataFormat": "application/json"
    }
}

Else, it will raise the following error: 

The expected behavior is that I can use the output of Get Task Variable REST API directly to update a task variable via Put Task variable REST API.

Acceptance criteria

 

 

 

 

Links:

ThorbenLindhauer commented 2 years ago

This comment was imported from JIRA and written by user qKbY87

What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.


I am from PwC, having similar kind of issue with DMN model when returning a string variable that contains double quotes. Any idea when this issue is going to resolved?  

 

Thanks

Kanaka Varanasi

kanaka.d.varanasi@pwc.com