Page 1 of 1

How can i assign a workflow to a Role

PostPosted:Fri Jul 19, 2019 9:43 am
by Rokko_91
Hi, i am trying to assing a task to a Role istead to a single or a pooled actor.

i saw an example here:https://www.openkm.com/wiki/index.php/Use_of_task_node
The example is this one:
Expression: This is an assignment expression evaluated by the jBPM identity component. Can make assignment by user or role (See note below). For example you can assign userd from a OpenKM role using the "group(ROLE_USER)" expression. This create a collection of pooled actors with using whithin ROLE_USER role.

i tryed to assign my task to an Expression as suggested, but is not woking. and i get this error from logs :

Jul 19, 2019 11:10:24 AM org.jbpm.instantiation.Delegation instantiate
SEVERE: couldn't load delegation class ''

Can u help me?

Re: How can i assign a workflow to a Role

PostPosted:Mon Jul 22, 2019 9:41 am
by pavila
It's better if you create an assignHandler and programatically get the users from a role.

Best regards.

Re: How can i assign a workflow to a Role

PostPosted:Wed Jul 24, 2019 3:00 pm
by Rokko_91
Do u have any documentation about assignHandlers?
some java code examples that i can follow?

thanks for any suggestion

Re: How can i assign a workflow to a Role

PostPosted:Thu Jul 25, 2019 8:27 am
by pavila