Process return value

214 views
Skip to first unread message

offm...@gmail.com

unread,
Mar 28, 2014, 8:03:26 AM3/28/14
to camunda-...@googlegroups.com
Hi everyone,
Is it possible to return result from business process?
I tried the following method

ProcessInstance proc = runtimeService.startProcessInstanceByKey(PROCESS_KEY, params);
Object value = runtimeService.getVariable(processInstance.getId(), VARIBALE_NAME);

but this is don't work
org.camunda.bpm.engine.ProcessEngineException: execution b91ec2a9-b670-11e3-a776-3085a941c7d9 doesn't exist.

Bernd Rücker (camunda)

unread,
Mar 28, 2014, 8:05:43 AM3/28/14
to camunda-...@googlegroups.com
Hi offmagic.

If your process runs till the end in one go the process instance is removed
from the runtime database immediately. Hence you have to query the
"historyService" for the variables.

Cheers
Bernd
Consultant & Evangelist (www.camunda.org/community/team.html)
We are hiring: http://www.camunda.org/community/jobs.html

-----Ursprüngliche Nachricht-----
Von: camunda-...@googlegroups.com
[mailto:camunda-...@googlegroups.com] Im Auftrag von
offm...@gmail.com
Gesendet: Freitag, 28. März 2014 13:03
An: camunda-...@googlegroups.com
Betreff: [camunda-bpm-users] Process return value
--
You received this message because you are subscribed to the Google Groups
"camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/camunda-bpm-users/78409b14-e6ec-4230-aaf7-3327e2ba857f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages