[jBPM] - Re: Did JBPM 5+ drop jPDL support? Only BPMN?
by Jan Uhlir
Jan Uhlir [https://community.jboss.org/people/espinosa_cz] created the discussion
"Re: Did JBPM 5+ drop jPDL support? Only BPMN?"
To view the discussion, visit: https://community.jboss.org/message/648959#648959
--------------------------------------------------------------
Thank you Tihomir for prompt and insightful reply. Great community.
Though you did not pleased me much :(
> Tihomir Surdilovic wrote:
>
> >> *Was jPDL modelling language support droped?* <<
> Yes. In jBPM5 processes are represented via the BPMN2.0 standard. jPDL is/was a propriatary markup representation which did not follow any standards.
> *
>
I know, but still it was very handy language.
Glancing at BPMN 2 it seems like moving towards BPEL, towards a language of its own, except it does not rely heavily on web service. jPDL was more like a mapping process to a Java code. That's what I appreciated the most.
>
> >> *RedHat SOA <<*
> jBPM 3.x is still supported by Red Hat. Future versions of BRMS/SOA will include jBPM5 and thus also BPMN2.0.
> *
>
*
*
So the *latest* RedHat SOA (5.x) is based on jBPM version 3.x? Two major releases back?
Is it similar with other components too? I mean such version lag.
Anyway
Thank you very much
Espinosa
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648959#648959]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[jBPM] - Re: Trying to set ActorId in On Entry Action - work item is null
by Maciej Swiderski
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: Trying to set ActorId in On Entry Action - work item is null"
To view the discussion, visit: https://community.jboss.org/message/648930#648930
--------------------------------------------------------------
Agree, I used to many terms that could make the solution bit fuzzy.... let me put it here:
* node is a definition of a particular logic in the process (bpmn)
* node instance is a runtime element of process instance build based on node
* task is a special representation of a node
* task instance is an instance created based on task and maintained by Task Server that has its life cycle as defined in WS-HumanTask spec
* actor id is a potential owner defined in bpmn - as potential owner is kept as ActorId in work item properties
* group id that is rather self explanatory
With that in mind, when Task A is entered it creates task instance A (based on Task A), when it is completed engine creates task instance B (based on task B), assuming that approver rejects the task instance A outcome, it will create task instance C (based on Task A), meaning worker that completed task instance A will work on brand new task instance.
What I suggested was that instead of going back to Task A (and create task instance based on it for rework) add new Task C that will be dedicated to rework. In general it does not change much in the concept, it simplifies user assignment as it differs based on the process state. Task A and Task B assign users based on groups and task C assigns individual who completed Task A (instances of those tasks).
Regarding assignments, yes, you can use process variables to assign users, #{variable}, take a look at the example from my previous post where group id is assigned based on process variable. So that would mean following:
* Task A assigns users based on group with #{worker-group} process variable
* Task B assigns users based on group with #{approvers} process variable
* Task C assigns user based on potential owner with process variable #{TaskA-actualOwner}
Does that sound suitable for your case?
Hope this time I cleared some things ....
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648930#648930]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[jBPM] - Trying to set ActorId in On Entry Action - work item is null
by jemmerling
jemmerling [https://community.jboss.org/people/jemmerling] created the discussion
"Trying to set ActorId in On Entry Action - work item is null"
To view the discussion, visit: https://community.jboss.org/message/648746#648746
--------------------------------------------------------------
Hi,
I am trying to implement an On Entry Action to set the ActorId for a work item.
More generally, what I am trying to do is to assign a task to a specific actor under certain circumstances. In the process definition, the ActorId is empty for the node however GroupId is specified. So ordinarily, some member of a group will claim the task, however given a certain condition, I want the task to be assigned to a specific actor.
This is probably the wrong way to do it, but I hope I am close.
So I implemented this On Entry Action, I can access the node instance but there is no work item (as opposed to the situation encountered in an On Exit Action):
System.out.println("* * * * * * * * * manager: " + manager + " * * * * * * * * * * * * * * * * ");
if (manager != null)
{
System.out.println("* * * * * * * * * setting ActorId to " + manager + " * * * * * * * * * * * * * * * * ");
WorkItemNodeInstance nodeInstance = (WorkItemNodeInstance)kcontext.getNodeInstance();
if (nodeInstance != null)
{
WorkItem workItem = nodeInstance.getWorkItem();
if (workItem != null)
{
System.out.println("* * * * * * * * * about to set ActorId to " + manager + " * * * * * * * * * * * * * * * * ");
workItem.setParameter("ActorId", manager);
String actorId = (String) workItem.getParameter("ActorId");
System.out.println("* * * * * * * * * ActorId was set to " + actorId + " * * * * * * * * * * * * * * * * ");
}
else
{
System.out.println("* * * * * * * * * workItem was null * * * * * * * * * * * * * * * * ");
}
}
else
{
System.out.println("* * * * * * * * * nodeInstance was null * * * * * * * * * * * * * * * * ");
}
}
else
{
System.out.println("NOT setting ActorId");
}
Here is what is written to stdout:
* * * * * * * * * manager: pmanager2 * * * * * * * * * * * * * * * *
* * * * * * * * * setting ActorId to pmanager2 * * * * * * * * * * * * * * * *
* * * * * * * * * workItem was null * * * * * * * * * * * * * * * *
Can anybody see what I am trying to do and tell me what is the correct approach?
Thanks!
--JE
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648746#648746]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[jBPM] - JBPM console not showing Process diagram when I click on the Diagram button.
by srikant vege
srikant vege [https://community.jboss.org/people/srikanthvege1] created the discussion
"JBPM console not showing Process diagram when I click on the Diagram button."
To view the discussion, visit: https://community.jboss.org/message/648874#648874
--------------------------------------------------------------
Hi,
I am using JBPM 5.2, Guvnor 5.3 installed on Jboss 7.0.2. I have created a workflow (test.bpmn with processId "test") and image file for that workflow (test-image.png) in eclipse and uploaded them to guvnor defaultPackage. I have deployed the defaultPackage.
Now I could able to see the workflow in JBPM console. I have started the workflow. Now, when I try to select the process instance and click the Diagram button to see the workflow diagram, I am getting "No Image associated to this process" message. I am getting this message only when I install both guvnor and jbpm console in LINUX system (CentOS) and access JBPM console from remote system.
I am able to see the process diagram when I install guvnor and console in my local system (windows) and access the console from my local system.
Please help me out on resolving this issue.
Thanks
Srikant.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648874#648874]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months