Business Central does not show Logged User Tasks

125 views
Skip to first unread message

Hugo Cruz

unread,
Nov 3, 2020, 6:27:31 AM11/3/20
to jbpm-...@googlegroups.com
Hi,

I'm starting to study jBPM and Keycloak. With the most current software versions, I was able to set up an environment with KIE Server and Business Central in one instance of WildFly and Keycloak in another instance.

In Business Central, I can see users and roles registered in Keycloak. It seems that the integration is properly configured according to the manuals available from both jBPM and Keycloak.

I create a very simple Project and Business Process with just one Task whose owner is the user kieserver (password kieserver1!) In Business Central and I can deploy this project.

However, when creating an instance of this Business Process and then logged in with the kieserver user in Business Central, when consulting his Tasks, Business Central does NOT show any Tasks for him.

If you have any tips, articles or any information that helps in the investigation, I am very grateful.

Thanks.

____________________________________
Hugo Cruz
E-mail: hug...@gmail.com


AaronPapa Knighter

unread,
Nov 14, 2020, 8:15:01 PM11/14/20
to jBPM Usage
After you kick off a process instance and go to the Process instance tab, and see which step (of a task) you are at, and also see who the actual owner is and or who the potowner is.   You should be able to see that in the process instance tab.  If you can't see it, then login using  user with the admin access (rhpamAdmin or krisv or etc).

When you say ". whose owner is ", I am assuming you have used "Actor" to the human task, correct? 

Also, I don't know which database you are using, but there is a "peopleassignments_potowners" table and a task table, you can query and see who the actual owner is or potential owner is for the task. 

Also, make sure the user "kieserver" has the role of user, as well. 
 

Cristiano Nicolai

unread,
Nov 15, 2020, 8:23:58 PM11/15/20
to AaronPapa Knighter, jBPM Usage
Also, be aware that owned tasks for the current user should show up under Track -> Task Inbox page.
Manage -> Tasks, only shows tasks that the current user is set as an administrator.

By default, kieserver user is more of a system account, if you want to use it in the UI, you can add user role as Aaron suggested, but in a more real-life scenario, I would suggest wither reusing one of the pre-existing users or a new one.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/c5f0a175-f5b6-43e7-95d1-f521f7d52b63n%40googlegroups.com.


--
Best regards,

Cristiano Nicolai

Hugo Cruz

unread,
Nov 16, 2020, 8:10:32 AM11/16/20
to Cristiano Nicolai, jBPM Usage
Hi Cristiano,

Thank you for your reply.

I ended up responding inappropriately just to Aaron's private email (very thoughtful, grateful) when I should have responded to the Group.

I am aware of the correct location to consult the logged User Tasks.

Here are images I took yesterday that demonstrate the problem. The names of the images are numbered to create a sequence to facilitate understanding.

I use the dark theme of Windows and Google Chrome, so some things are not so visible in the images.

The flow design is correct. The flow start and end symbols are connected to the Human Task.

I highlighted the items I found important in the images with a yellow background color.

I can create the process instances (and, consequently, the Human Task) but the problem is that Business Central (BC) is NOT showing the Tasks of the logged in user (kieserver).

The kieserver user is configured in the Keycloak with the following roles: admin, user, rest-all, kie-server and kiemgmt. I can see that in BC too.

If you can, I ask to check the images.

If you need any additional files to help with the analysis, please inform me that I send.

I've found posts from other people who are (or have had) similar issue. But, so far, no solution.

Thankful.


____________________________________
Hugo Cruz
E-mail: hug...@gmail.com



Image.10.jBPM.CURL.Task.Instances.jpg
Image.01.jBPM.BC.Servers.jpg
Image.09.jBPM.CURL.Tasks.Of.Process.Instance.jpg
Image.07.jBPM.MySQL.Table.Task.jpg
Image.08.jBPM.MySQL.Table.PeopleAssignments_PotOwners.jpg
Image.06.jBPM.BC.Task.Inbox.jpg
Image.04.jBPM.BC.User.kieserver.Roles.jpg
Image.05.jBPM.BC.Task.Definitions.jpg
Image.03.jBPM.BC.Process.Instance.jpg
Image.02.jBPM.BC.Process.Project.jpg

Carlos Guillermo Prada Fuentes

unread,
Apr 20, 2023, 5:49:26 AM4/20/23
to jBPM Usage
Hi everyone.

Did you resolve this issue? Could you please provide any guidance?

I am facing the same with versions 7.73 and 7.61 of JBPM.

Reply all
Reply to author
Forward
0 new messages