02-15-2011 12:10 PM
02-17-2011 04:29 AM
03-15-2011 04:35 PM
When using candidateGroups, you can use an expression which delegates the logic to some custom java code, eg. candidateGroups="${myLogic.resolveOrderParticipants}". Would that approach work ?Is myLogic one of my implemented logics? Is there any example available for this?
Regarding linking the identity management: you should replace the IdentitySession with your own implementation. There are a few threads on the forum that described how to do this.If found a thread that helped me to create my own implementation. The users are no problem. But as we do not use groups but roles which result in a list of users only when they are in the context of an order this is a problem. The IdentitySession-Interface has some group related methods. As I don't know anything about the order when those methods are executed I am not sure how to implement this.
03-16-2011 07:11 AM
Is myLogic one of my implemented logics? Is there any example available for this?
if found a thread that helped me to create my own implementation. The users are no problem. But as we do not use groups but roles which result in a list of users only when they are in the context of an order this is a problem. The IdentitySession-Interface has some group related methods. As I don't know anything about the order when those methods are executed I am not sure how to implement this.
What I could do is to persist for each order the id of the ProcessInstance when the order is created (the process is also started at this time). If I could get the id of the process in the IdentitySession's methods I could also get my order. But this seems to be problem. Or could I solve this via "Context.getExecutionContext().getProcessInstance()"?
03-16-2011 07:47 AM
Just throw an UnsupportedOperationException in those methods, you will see quickly which ones are used.To find the methods that are used is not the problem but to make to correct implementation is one. Let us take a look at "IdentitySession.findUsersByGroupId". This has to return the list of users for a specified group. As I mentioned above we don't have groups but roles. A role results in users only if it the context (the order) is available. That means that a lot of users have e.g. the role "client" but only when creating a new order (and so starting a new process for this order) alle participants of this order with the role "client" are the correct users for the requested role.
I don't get this, what exactly do you need? When you start the Process Instance, you can easily get the id back.This was my attempt to solve the problem above (to get the context which is an order) in the implementing methods of IdentitySession which are related to groups.
03-16-2011 12:35 PM
Maybe I have to implement my own logic to resolve roles in the order's context.
candidateGroups="${myLogic.resolveOrderParticipants}" you can also pass parameters like process variables or whatever so you are kind of in the 'context' then.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.