JBoss Community

Re: How to get a process instance id within a sequence flow "condition expression"?

created by Dmitry Erkin in jBPM - View the full discussion

Hello, Maciej !

 

It says: Unable to resolve ObjectType 'exists' if I try to build a package which includes a process with  the expression you suggested:

 

$processInstance : org.drools.runtime.process.WorkflowProcessInstance()

$request : Request($id:id) from $processInstance.getVariable("request")

not exists(Issue(requestid == $id))

 

My first question is what is wrong with "exists"?

Secondly, are you sure that "$processInstance : org.drools.runtime.process.WorkflowProcessInstance()" would give me just one fact which represents current instance in case there are many instances are inserted in a session as facts?

 

I really appreciate your efforts, thank you

 

 

Regards,

 

Dmitry Erkin

Reply to this message by going to Community

Start a new discussion in jBPM at Community