Actor is not set properly when using #{initiator}

293 views
Skip to first unread message

Nick

unread,
Mar 18, 2018, 12:52:25 AM3/18/18
to jBPM Usage

Hi,

I face problem when setting Actor of task to #{initiator}. I am running spring boot kie-server with keycloak (built from keycloak-kie-server-spring-boot-sample). 

1. Set Actor of task as #{initiator}.


save image


2. After starting the process, the owner of the reserved task is set to #{initiator} instead of the username of the signed in user (admin)

save image

3. The initiator process variable did get populated properly.



save image


4. In the log, I found this:

kie-server_1   | 2018-03-18 04:08:19.660 ERROR 5 --- [io-8080-exec-10] o.j.w.i.node.WorkItemNodeInstance        : Could not find variable scope for variable initiator
kie-server_1   | 2018-03-18 04:08:19.660 ERROR 5 --- [io-8080-exec-10] o.j.w.i.node.WorkItemNodeInstance        : when trying to replace variable in string for Work Item Human Task
kie-server_1   | 2018-03-18 04:08:19.660 ERROR 5 --- [io-8080-exec-10] o.j.w.i.node.WorkItemNodeInstance        : Continuing without setting parameter.


Any idea? What is the variable scope?

Regards,
--Nick Wong

Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3

Maciej Swiderski

unread,
Mar 18, 2018, 4:54:55 AM3/18/18
to Nick, jBPM Usage
You need to define initiator as process variable in your model and that should do the trick 

Maciej

Wiadomość napisana przez Nick <lhw...@gmail.com> w dniu 18.03.2018, o godz. 05:52:


Hi,

I face problem when setting Actor of task to #{initiator}. I am running spring boot kie-server with keycloak (built from keycloak-kie-server-spring-boot-sample). 

1. Set Actor of task as #{initiator}.


<Auto Generated Inline Image 1>


2. After starting the process, the owner of the reserved task is set to #{initiator} instead of the username of the signed in user (admin)

<Auto Generated Inline Image 2>

3. The initiator process variable did get populated properly.



<Auto Generated Inline Image 3>


4. In the log, I found this:

kie-server_1   | 2018-03-18 04:08:19.660 ERROR 5 --- [io-8080-exec-10] o.j.w.i.node.WorkItemNodeInstance        : Could not find variable scope for variable initiator
kie-server_1   | 2018-03-18 04:08:19.660 ERROR 5 --- [io-8080-exec-10] o.j.w.i.node.WorkItemNodeInstance        : when trying to replace variable in string for Work Item Human Task
kie-server_1   | 2018-03-18 04:08:19.660 ERROR 5 --- [io-8080-exec-10] o.j.w.i.node.WorkItemNodeInstance        : Continuing without setting parameter.


Any idea? What is the variable scope?

Regards,
--Nick Wong

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/893158f2-d4a7-48f4-b019-f8deec0cc0a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Auto Generated Inline Image 1>
<Auto Generated Inline Image 2>
<Auto Generated Inline Image 3>
Reply all
Reply to author
Forward
Message has been deleted
0 new messages