[JBoss jBPM] - Re: Transitions not being followed correctly
by jbaxter
Cheers got the validation working now. I better do some reading on JSF so I can make it look better!
| j_id201:j_id209: Validation Error: Value is required.
|
JIRA reference for form generation:
http://jira.jboss.com/jira/browse/JBPM-1051
I have another problem with the tutorial I am following... There are two nodes with taskforms which write to a variable of the same name. The first node writes to the variable okay as the second node will display the variables' value and provide for its modification. You can then change a variable and 'save and close' the task. The token then moves along the default transition back to the first node as expected. The problem is that the second task did not modify the variable as the original value of the variable is shown in the first node. Going back and forth between the nodes, I can always overwrite the value of the variable using the taskform on the first node, but never using the taskform on the second node. Any ideas on this one?
For reference, the two nodes are "All contracts agreed?" and "Contract new member" of the previously mentioned tutorial. The taskform code is:
All contracts agreed? (First node)
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Band member 1 agreed?"/>
| </f:facet>
| <h:inputText value="#{var['bm1Agreed']}" />
| </jbpm:datacell>
|
Contract new member (Second node)
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Band member 1 agreed?"/>
| </f:facet>
| <h:inputText value="#{var['bm1Agreed']}" />
| </jbpm:datacell>
|
This is turning into a pain in the arse!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081329#4081329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081329
18 years, 7 months
[JBoss jBPM] - group assigment issues
by tmehdi
I can't get group assignments to work using expressions, tasks tansition to the next node, however, tasks don't get assigned to the groups.
I'm working with jboss-jbpm-3.2.GA (suite)
I have the following process deployed:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns="" name="RequirementsAnalysis">
<start-state name="Submit change request">
<variable name="Descr" access="read,write,required" mapped-name="Change Request Description">
<variable name="Module" access="read,write,required" mapped-name="Solution Area">
</start-state>
<task-node name="Review change request">
<variable name="Descr" access="read" mapped-name="Description">
<variable name="Module" access="read" mapped-name="Module">
<variable name="UpdReq" access="read,write,required" mapped-name="Updated Requirement">
</task-node>
<end-state name="end1"></end-state>
</process-definition>
I updated the jbpm tables with the following script:
/*First we add in the security roles*/
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (60,'G','manager','security-role',NULL)
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (61,'G','participant','security-role',NULL)
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (62,'G','administrator','security-role',NULL)
/*Then we add in the organisations*/
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (70,'G','EndUser','organisation',NULL)
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (71,'G','ReqAnal','organisation',NULL)
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (72,'G','SWEngin','organisation',NULL)
INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (73,'G','QAAnal','organisation',NULL)
/*Then we add in the users*/
INSERT INTO PUBLIC.JBPM_ID_USER VALUES (80,'U','euser','euser(a)tng.com','euser')
INSERT INTO PUBLIC.JBPM_ID_USER VALUES (81,'U','reqanal','reqanal(a)tng.com','reqanal')
INSERT INTO PUBLIC.JBPM_ID_USER VALUES (82,'U','swengin','swengin(a)tng.com','swengin')
INSERT INTO PUBLIC.JBPM_ID_USER VALUES (83,'U','qaanal','qaanal(a)tng.com','qaanal')
INSERT INTO PUBLIC.JBPM_ID_USER VALUES (84,'U','adminmgr','adminmgr(a)tng.com','adminmgr')
/*Then we make all our normal users participants*/
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'80','61')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'81','61')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'82','61')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'83','61')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'84','61')
/*Then we make the administrator an administrator*/
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'84','62')
/*Then we make the manager a manager*/
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'84','60')
/*Finally we add all our users to their organisation groups*/
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'80','70')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'81','71')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'82','72')
INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'83','73')
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081328#4081328
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081328
18 years, 7 months