Troubles linking a form to a task

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2011 12:41 AM
Hi,
I watched http://www.youtube.com/user/ActivitiBPM?blend=6&ob=5 and tried to recreate a similar process:
I modelled the process and created deployment artifacts. I then imported screencast.bar with probe.
However, when I click on "complete form" under "my tasks", I get a popup "Failure". Seems like it cannot find the file with the form.
This is what I entered under "form key:" for the particular task: /diagrams/request.form
My structure is:
-demoProject
–src/main/resources
—diagrams
—-request.form
—-screencast.activiti
—-screencast.bpmn20.xml
BPMN 2.0:
I also tried: "diagrams/request.form" and "request.form" with same result.
I then opened the folder demoProject\src\main\resources\diagrams. I put everything in a zip file and uploaded it manually. The form.key was still request.form, but it finally worked.
Do you have any idea why my deployed bar file does not work in any scenario? Is it the path or is the request.form not part of the bar file? I do not really want to zip everything manually each time I need to deploy a change.
I would be grateful for any hints.
Best regards and thank you in advance,
Tobias
I watched http://www.youtube.com/user/ActivitiBPM?blend=6&ob=5 and tried to recreate a similar process:
I modelled the process and created deployment artifacts. I then imported screencast.bar with probe.
However, when I click on "complete form" under "my tasks", I get a popup "Failure". Seems like it cannot find the file with the form.
This is what I entered under "form key:" for the particular task: /diagrams/request.form
My structure is:
-demoProject
–src/main/resources
—diagrams
—-request.form
—-screencast.activiti
—-screencast.bpmn20.xml
BPMN 2.0:
<process id="Screencast" name="screencast"> <documentation>Place documentation for the 'screencast' process here.</documentation> <startEvent id="startevent1" name="Start"></startEvent> <endEvent id="endevent1" name="End"></endEvent> <userTask id="request" name="Request task" activiti:candidateGroups="accountancy"[b] activiti:formKey="/diagrams/request.form"[/b]></userTask> <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="request"></sequenceFlow> <sequenceFlow id="flow2" name="" sourceRef="request" targetRef="endevent1"></sequenceFlow> </process>
I also tried: "diagrams/request.form" and "request.form" with same result.
I then opened the folder demoProject\src\main\resources\diagrams. I put everything in a zip file and uploaded it manually. The form.key was still request.form, but it finally worked.
Do you have any idea why my deployed bar file does not work in any scenario? Is it the path or is the request.form not part of the bar file? I do not really want to zip everything manually each time I need to deploy a change.
I would be grateful for any hints.
Best regards and thank you in advance,
Tobias
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2011 05:26 AM
Your form must always be part of the same deployment package (ie bar file) of your process, as the form resource is retrieved relative to the deployment.
