cancel
Showing results for 
Search instead for 
Did you mean: 

Linking one jsf form to another in activiti

sudhakarkamat
Champ in-the-making
Champ in-the-making
Dear All,

I am creating web application to process a BPMN work flow. The processing engine used is activiti.
My BPMN flow is Project Audit which is described as below.

Create Project Audit—->Document Audit—->Release Audit—–>Close Audit
(CreateProjAudit.xhtml)—->(DocAudit.xhtml)—->(ReleaseAuit.xhtml)—->(CloseAudit.xhtml)

I am able to open CreateProjectAudit.xhtml on a start event, but could not link to DocAudit.xhtml via activiti process engine.

Any idea on this. Looking for some support in this area.

Thanks in advance.
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
What do you mean? You want to open up a form automatically when you complete another form?

If so, simply query the engine for the current task, see if it's assigned to the current user and display the form.

Thanks for the quick reply.


I have created a simple page createAudit.xhtml file with just a command button. When I click on this command button it must take me to another jsf page AuditDetailsPage.Xhtml .  Can you please help me how to link this with bpmn file.

I am working according Chapter9 in Activiti in Action as show below.

startEvent id="startEvent" name="Start" activiti:formKey="taskForm_newOrder.jsf" />
But page is not getting displayed.
One Doubt I have here is on deployment. When we run Junit tests we use below tag for deployment.
@Deployment(resources={"diagrams/loanrequest_firstpart.bpmn20.xml"})

How can we do the deployment of process on activiti engine in web application.
Mr.Barrez please help me on this.

jbarrez
Star Contributor
Star Contributor
> But page is not getting displayed.

I'm not sure what you are doing. Are you fetching the form key and displaying it?

The deployment in a webapplication would need to be done either programmatically, or you would need to have a UI for it that allows you to upload an xml file.

idireneyoucef
Confirmed Champ
Confirmed Champ

you can lanch an instance of your process 

create controler and  write this lane off code 

 ProcessInstance inst = runtimeService.startProcessInstanceByKey("myProcess");

put it on function and call it from your controlleur