[jBPM Users] - JBPM User Task - Forms
by RockerRocker
Hi,
Background --
I am using JBPM 4.2 and I am able to deploy, start simple processes i.e. from one task to another using decisions, java etc.
I am not using JBPM provided Console, and have built a self made simple console to check the status of each process.
Problem --
I am trying to run a process which will involve human task. So started with task form example provided with JBPM.
The process is deployed successfully but when it starts, it does not invoke the '.ftl' file. How should i get this working ? The status shows start time but no end time
My files (*.jpdl.xml and *.ftl) are in "WEB-INF/classes/com/jbpm/test/process/" folder in my war.
JPDL
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="VacationRequest" xmlns="http://jbpm.org/4.2/jpdl">
| <start form="com/jbpm/test/process/request_vacation.ftl" g="16,56,48,48" name="start">
| <transition to="verify_request"/>
| </start>
| <task form="com/jbpm/test/process/verify_request.ftl" g="96,54,178,52" name="verify_request">
| <transition g="-34,9" name="reject" to="vacation_rejected"/>
| <transition g="-46,-26" name="accept" to="vacation_accepted"/>
| </task>
| <end g="306,16,48,48" name="vacation_accepted"/>
| <end g="306,96,48,48" name="vacation_rejected"/>
| </process>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268849#4268849
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268849
16 years, 4 months
[jBPM Users] - Re: Variable missing in assignment handler
by nizzy
Hi,
I have successfully copied the super-process variables into the sub-process using the "variable" element in the process definition.
Chapter 18 Table 18.8 of the User Guide states
"variable - specifies how data should be copied from the super process to the sub process at the start and from the sub process to the super process upon completion of the sub process."
In the process state (sub-process) below, I have "em-ref" and "card-id" copied from super-process to sub-process with no problems. However I also took it to mean that "barcode-data" would be copied from sub-process back to super-process on sub-process completion.
This is not the behaviour I'm experiencing!
Have I misunderstood the spec?
| <process-state name="Encode Barcode App">
| <sub-process name="encodebarcodeapp"></sub-process>
| <variable name="em-ref" access="read" />
| <variable name="card-id" access="read" />
| <variable name="barcode-data" access="read" />
| <transition to="join1"></transition>
| </process-state>
|
Any help appreciated!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268816#4268816
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268816
16 years, 4 months
[jBPM Users] - Samples for calling BPEL process from Java
by bpel-way
I'm looking for samples/examples for how to call BPEL process from Java. I want to have a webpage in JSP and exchange messages with a BPEL process. I've looked all over the documentation available on this site, and also elsewhere; but, couldn't find anything useful. I must have missed something. Please help.
In case it helps, I'm using: JBossAS 4.2.3GA, JBPM-BPEL1.1.1, JDK 1.5, JWSDP2.0, MySQL5.1, Ant1.7.1.
I'm new to this technology, and so far, I've been in successful in configuring MySQL to work with JBoss (very good documentation available here). I've been successful in creating some of my own processes (beginner level) and successfully deploy and test run them. Now, I've this scenario of calling a BPEL process from webpage.
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268740#4268740
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268740
16 years, 4 months
[jBPM Users] - Re: Problem moving from 4.1 to 4.2 using Spring configuratio
by suganda
Hi Saraswati,
Just now I added additional logic of force rollback in my class to know whether it will rollback or not. I found it won't rollback and still successfully deploy my service even thought i force the system to rollback
Attached is the code of the class
| public class InitialFillServiceImpl implements InitialFillService{
| private RepositoryService repositoryService;
|
| public void testGanda(){
| NewDeployment newDeployment = repositoryService.createDeployment();
| newDeployment.setName("TestSpring");
| newDeployment.setTimestamp(new Date().getTime());
| newDeployment.addResourceFromClasspath("com/gda/dol/comp/jbpm/impl/process.jpdl.xml");
| newDeployment.deploy();
| List<Deployment> deploymentIdList = repositoryService.createDeploymentQuery().list();
| for(Deployment deployment : deploymentIdList){
| int i = 1;
| System.out.println("Retrieve element : "+i);
| System.out.println("Deployment ID : "+deployment.getId());
| System.out.println("Deployment Name : "+deployment.getName());
| i++;
| }
| throw new Exception("xxxx");
| }
|
| public void setRepositoryService(RepositoryService repositoryService) {
| this.repositoryService = repositoryService;
| }
|
| }
|
|
So, its means JBPM will create or instantiate its own transaction not using Spring transaction since i set current="false" in hibernate sessions ?
anyone can help to explain this weird scenario ?
Thanks in advance,
Best Regards,
Suganda
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268681#4268681
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268681
16 years, 4 months