Hi all,
We are trying to migrate our Flowable 5 codebase and we are hitting a number of blockers, suggestions would be appreciated:
- We used to use ProcessDefinitionEntity.setProperty during parse to set custom attributes, which we retrieved in a helper bean at runtime using this code:
ExecutionContext context = Context.getExecutionContext();
ProcessDefinitionEntity definition = context.getProcessDefinition();
definition.setProperty(…);
get/setProperty came from the PVM class that has been removed. I don’t see anything obvious on BpmnModel that we could use to store custom key/value pairs… any suggestion?
-
In a FlowableEventListener, is
Context.getProcessEngineConfiguration().getRuntimeService()
the correct replacement for
event.getEngineServices().getRuntimeService(). ? -
In Flowable 5 I used to set the configuration on the Context before building the engine:
Context.setProcessEngineConfiguration(cfg);
_processEngine = cfg.buildProcessEngine();
… can I just skip that step?
- In a custom parse handler we used to define process variables directly on the process entity:
processDefinition.getVariables().put(BpmnUtil.getJavaName(dataObject), value)
… in version 6 getVariables() returns null in that phase, what would be to correct alternative?
Thanks!
Franck