[Design of JBoss jBPM] - [BPMN2] advanced pvm/parsing question
by camunda
Ronald wrote :
| > ActivityResources have a resourceRef to resources, just like
| > sequenceflows have to activities, at least in bpmn. There are two
| > differences. Sequenceflows need to be added to activities which can be
| > retrieved with findActivirty and that the level they are on the xml
| > file is different. I've been looking in detail at the jPDL parser,
| > but maybe because of tiredness, I do not seem to get a grip on how to to do this.
| > push, pop, unresolvedTransitions like, I've seen it al but cannot find out.
| >
| > If you have a tip, I can continue with this tomorrow and probably do
| > the same for dataObjects.
|
Tom wrote :
| BpmnParser should first parse the resources and build up an internal datastructure for it. So that resourceRefs can look em up there.
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248301#4248301
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248301
15 years, 5 months
[Design of JBoss jBPM] - [BPMN2] Resource assignment
by camunda
Moving from Mail to forum:
Ronald:
| >>> This works:
| >>>
| >>> <bpmn:userTask id="UserTask" name="user task"
| >>> implementation="other">
| >>> <!-- use jbpm internal task management -->
| >>> <bpmn:performer id="myPerformer"
| >>> resourceRef="sampleResource">
| >>> <bpmn:resourceAssignmentExpression
| >>> id="rae">
| >>> <bpmn:formalExpression
| >>> language="juel">${assignedUser}</bpmn:formalExpression>
| >>> </bpmn:resourceAssignmentExpression>
| >>> </bpmn:performer>
| >>> <bpmn:rendering id="myRendering">
| >>> <jbpm:form>MyForm.ftl</jbpm:form>
| >>> </bpmn:rendering>
| >>> </bpmn:userTask>
| >>>
| >>> Assigning a task to a user while parsing a processvariable. Not sure
| >>> how I have to use the resource though, that's still a blurry subject
| >>> for me in this regard.
| >>>
| >>> What also works is setting the form on the taskDefinition based on
| >>> the jbpm:form inside the rendering element (yes Tom, OTHER namespace
| >>> required :-P), so it might just be that it is possible to hook this
| >>> up to the console already.
| >>>
| >>> What I'm currently looking into is how to differentiate between
| >>> users and groups. There is a potentialOwner element of which you can
| >>> have multiple, but it might be that
|
Ronald:
| >> I could initially do something like:
| >>
| >> <bpmn:potentialOwner id="myPerformer"
| >> resourceRef="sampleResource" jbpm:type="group">
| >>
| >> for groups
| >>
| >> and
| >>
| >> <bpmn:potentialOwner id="myPerformer"
| >> resourceRef="sampleResource" jbpm:type="user">
| >>
| >> for users.
|
Tom wrote :
| > isn't the simplest way if we couple resourceRef directly to our groups ?
| >
| > <bpmn:potentialOwner id="myPerformer" resourceRef="accounting">
| >
| > in jBPM we could then associate the group as a candidate for that
| > task. i think that covers the most common form of task assignment.
| >
| > wdyt?
|
Bernd:
| > This is not the BPMN 2 way of thinking I guess. So I would go for what
| > Ronald proposed, that looks like valid BPMN 2.
| >
| > For the groups I didn't find anything in the spec. I check Bruce's
| > book. Maybe there...
| >
| > Intuitivley I would put it in the resource (example from spec, p. 183):
| >
| > <resource id="regionalManager" name="Regional Manager">
| > <resourceParameter id="buyerName" isRequired="true" name="Buyer Name"
| > type="xsd:string"/>
| > <resourceParameter id="region" isRequired="false" name="Region"
| > type="xsd:string"/>
| > <jbpm:type>user</jbpm:type>
| > </resource>
|
Tom:
| can't we start with resourceAssignmentExpression instead of the resourceRef as the most basic way of assigning a task?
|
| <potentialOwner id="myPerformer">
| <resourceAssignmentExpression>
| <formalExpression body="tom" language="jbpm-user" />
|
| or
|
| <potentialOwner id="myPerformer">
| <resourceAssignmentExpression>
| <formalExpression body="sales-dept" language="jbpm-group" />
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248300#4248300
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248300
15 years, 5 months
[Design of JBoss jBPM] - Re: [BPMN2] How to implement uncontrolled sequence flow beha
by kukeltje
"tom.baeyens(a)jboss.com" wrote : (ps you already might have noticed that in our own implementations, it is best to use the impl classes and not the interfaces)
I have recently and it is becoming a problem. The PVM is created with jPDL as a reference/base. BPMN is a little different in some cases. I've implemented several workarounds now but that does not feel good. An example:
While parsing the transitions and adding them to the activities, I'd like to set the defaultOutGoingTransition on the activity. I cannot do that, since the findActivity in the CompositeElementImpl returns an ActivityImpl but I need the ExclusiveGateway since that is the only one that has the getDefault() on it (which outgoing transition is the default is on the exclusive gateway, not the transition).
If this was possible the parsing of the outgoing transitions would be cleaner as it currently is.
Any chance that this can be changed? Or otherwise please enlighten me why this is not an option.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247990#4247990
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247990
15 years, 6 months