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.08k stars 1.54k forks source link

Add defaultSerializationFormat to References and Installation Guides #2107

Open ThorbenLindhauer opened 8 years ago

ThorbenLindhauer commented 8 years ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-4835
Reporter rP62zaw
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

This is not yet mentioned in bpm-platform.xml

                    <property name="defaultSerializationFormat"> 
                                    application/json 
                    </property>

So it is rather hard to find how to set the default.

It is even mentioned that the default should be changed (https://docs.camunda.org/manual/latest/user-guide/data-formats/data-formats-in-processes/#serializing-process-variables) - but no hint how to achieve this. A link should be provided

Links:

ThorbenLindhauer commented 8 years ago

This comment was imported from JIRA and written by user rP62zaw

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.


Asked today afgain.

This is what needs to be added in WildFly - add it to standalone.xml:

    <subsystem xmlns="urn:org.camunda.bpm.jboss:1.1">
        <process-engines>
            <process-engine name="default" default="true">

...

... application/json
ThorbenLindhauer commented 8 years ago

This comment was imported from JIRA and written by user @ThorbenLindhauer


It is actually in the docs (see bottom page of https://docs.camunda.org/manual/7.4/user-guide/data-formats/json/#serializing-process-variables), but probably not in a place where you would search for it.

ThorbenLindhauer commented 8 years ago

This comment was imported from JIRA and written by user rP62zaw

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.


There is no information WHERE to set this property. So people are lost.

we need to show how to set it in bpm-platform.xml and in the various containers (e.g. standalone.xml in WildFly).

ThorbenLindhauer commented 8 years ago

This comment was imported from JIRA and written by user x18wddb

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.


For anyone else looking to set the defaultSerializationFormat to application/json on tomcat before the documentation gets updated, adding

<property name="defaultSerializationFormat">application/json</property>

to the bpm-platform.xml where you see it below worked for me:

<?xml version="1.0" encoding="UTF-8"?>
<bpm-platform xmlns="http://www.camunda.org/schema/1.0/BpmPlatform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.camunda.org/schema/1.0/BpmPlatform http://www.camunda.org/schema/1.0/BpmPlatform ">

  <job-executor>
    <job-acquisition name="default" />
  </job-executor>

  <process-engine name="default">
    <job-acquisition>default</job-acquisition>
    <configuration>org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration</configuration>
    <datasource>java:jdbc/ProcessEngine</datasource>

    <properties>
      <property name="history">full</property>
      <property name="databaseSchemaUpdate">true</property>
      <property name="authorizationEnabled">true</property>
      <property name="jobExecutorDeploymentAware">true</property>
      <property name="defaultSerializationFormat">application/json</property>
    </properties>
ThorbenLindhauer commented 3 years ago

This comment was imported from JIRA and written by user 95D2QKO

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.


Hi I know this ticket is quite old, but luckily i found it during my research.

 

Could you please update the documentation. I think as Thorben mentioned https://docs.camunda.org/manual/7.14/user-guide/data-formats/json/#serializing-process-variables would be a good place to add it.

 

BR

Christoph