Help using AdHocActivationCondition (drools) & CaseData/Case File Variables

Posted on

Hi all,

I'm new to RHPAM (and also new to Java, but I have a background in .NET ~7 years ago) here and working on a case project where I need some help firing off an ad-hoc sub-process based on the value of various case file variables.

I have tried a handful of different condition statements and have reached the point where I need assistance!
These are the ones I 'decided' were worth persisting with, but I am not having any luck.

Option 1
org.kie.api.runtime.process.CaseData(data.get("stage") == "Procurement")

Option 2
CaseData (((String) data.get("stage")) == "Procurement")

FWIW, I have been starting the process with a scrip task that uses println to output the data, so I have at least an understanding of what's in context.
From this, I can confirm that the "stage" CFV has a string value of "Procurement"

Any help which can be provided is most appreciated.

Regards,

Patrick.

Responses