0

I am trying to use a Java Delegate Expression (Similar to TaskListener's Expression where you can pass a TaskDelegate to the expression context). In a nutshell - am trying to accomplish what taskListener allows to pass in a TaskDelegate using the expression ${myDelegate.doSomething(task)} which works fine for TaskListener!

However Im trying to do the same using the Delegate's expression. I understand we can do this which works ${myDelegate.doSomething()} (without any Runtime Engine's params) but I need the Runtime from which we can get the ProcessRuntimeExecution etc! I don't want to use the Java Delegate's execute method since I am reusing this Delegate for a User Task's TaskListener methods.

${myDelegate.doSomething(WHAT DO I PASS HERE TO GET Camunda Runtime?)}

public class MyDelegate implements JavaDelegate {
    public void doSomething( CAMUNDA RUNTIME? ) {
        // Get the ProcessEngine etc
    }
}

1 Answer 1

1

You are looking for the DelegateExcecution.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.