Process Variables documentation mistakes

Documentation mistake in set-multiple-typed-values.

com.example.Order order = new com.example.Order();

VariableMap variables =
  Variables.createVariables()
    .putValueTyped("order", Variables.objectValue(order))
    .putValueTyped("string", Variables.stringValue("a string value"))
    .putValueTyped("stringTransient", Variables.stringValue"foobar", true));
runtimeService.setVariablesLocal(execution.getId(), "order", variables);

Variables.objectValue(order) will return type of org.camunda.bpm.engine.variable.value.builder.ObjectValueBuilder which is not a type of org.camunda.bpm.engine.variable.value.TypedValue.


The code should be like, Variables.objectValue(order).create() will return the TypedValue.

com.example.Order order = new com.example.Order();
    
VariableMap variables = 
Variables.createVariables()
            .putValueTyped("order", Variables.objectValue(order).create())
            .putValueTyped("string", Variables.stringValue("a string value"))
            .putValueTyped("stringTransient", Variables.stringValue("foobar", true));
runtimeService.setVariablesLocal(execution.getId(), "order", variables);

Better create a ticket on jira. Here in the forums your report can be easily overseen and forgotten.

Hi @aravindhrs,

or even better, create a pull request on this page: https://github.com/camunda/camunda-docs-manual/tree/master/content/user-guide/process-engine/variables.md. (It’s linked on top of each page in the documentation)

This is the easiest way to improve the documentation. The product team will check your pull request.

Cheers, Ingo

Thanks @Ingo_Richtsmeier for the link. Will take the pull request, will be quicker.

@Ingo_Richtsmeier, i was getting below error when i push to upstream branch.

    aravindh@ARAVINDH-RS MINGW64 /d/opensource/camunda/camunda-docs-manual/camunda-docs-manual (aravindhrs-camunda-docs-manual)
    $ git push --set-upstream origin aravindhrs-camunda-docs-manual
    Username for 'https://github.com': aravindhrs
    remote: Permission to camunda/camunda-docs-manual.git denied to aravindhrs.
    fatal: unable to access 'https://github.com/camunda/camunda-docs-manual.git/': The requested URL returned error: 403

Also i have created a ticket for this discussion: https://jira.camunda.com/browse/CAM-11717

Hi @aravindhrs,

sorry for the confusion here. I doublechecked with the product team and only Camunda employees are allowed to push directly to this repo.

You have to fork the camunda-docs-manual repository on Github, do the edit in your fork and provide a pull request from your fork.

This is still the fasted way to get the stuff done.

Cheers, Ingo

@Ingo_Richtsmeier thanks got it

@Ingo_Richtsmeier, I have created a below pull request, please review and merge to master branch.

Closing this topic. Pull request got merged.