Expression invoke java class issue

@Component
public class ExpressionDelegate implements JavaDelegate {

    public void getVerTag(final ActivityExecution execution,String actId)  {
        System.out.println(actId);
    }

    @Override
    public void execute(DelegateExecution delegateExecution) throws Exception {

    }
}

cannot found class

may I do this?

Hello my dear!

You are trying to call a class in a call activity o.o
The call activity is for calling another process / BPMN flow and not for calling JavaDelegate classes.

What you must do to call a JavaDelegate class is to create a Service Task and add the type “Delegate Expression” in the “IMPLEMENTATION” field and then in the “Delegate Expression” field you place your call to the JavaDelegate class :smiley:

image

If I helped you in any way leave your like hahaha!
And if your issue was resolved with this, please mark it as “Solved” / “Solution”, so others know that the case has already been completed.

Big hug!

See ya!
Regards.

William Robert Alves

I know it’s some strange , I must to do this and done . LOL