Workflow Start Task Issue

cancel
Showing results for 
Search instead for 
Did you mean: 
sanjaybandhniya
Intermediate

Workflow Start Task Issue

I have created custom workflow that can be start using custom action and selecting that workflow from dropdown list under workflow i have started.

When start workflow using drop down and display first form, then start task comes under history means start task is complete but when i start workflow using custom action , in that case start task comes under  current task.

Jeff Potts

Please comment on this.

6 Replies
krutik_jayswal
Senior Member II

Re: Workflow Start Task Issue

In start task , use form key as wf:submitAdhocTask.

sanjaybandhniya
Intermediate

Re: Workflow Start Task Issue

I have Used this way:

1 ) *.bpmn20.xml

<startEvent id="StartEvent_1" name="Start Workflow" activiti:formKey="wf:submitStartTask">
</startEvent>

2)workflow-model.xml

<types>
<type name="wf:submitStartTask">
<title>Start Task</title>
<parent>bpm:startTask</parent>
</type>

Is this wrong way ?

krutik_jayswal
Senior Member II

Re: Workflow Start Task Issue

Was facing similar issue and it got resolved by using OOB task

sanjaybandhniya
Intermediate

Re: Workflow Start Task Issue

Not working.

krutik_jayswal
Senior Member II

Re: Workflow Start Task Issue

Generally we are whenever we create task type in content model, We have new namspace uri and prefix defined for that.We can not create new task type in our content model, which is referring different prefix  created in another content model.In you case you are trying to create wf:submitStartTask task type.Where wf: prefix belongs to alfresco content model.Not sure how you are able to start server as well.

It should work by changing in bpmn file.

<startEvent id="StartEvent_1" name="Start Workflow" activiti:formKey="wf:submitStartTask">

Instead of above use below

<startEvent id="StartEvent_1" name="Start Workflow">

This might resolve issue.

sanjaybandhniya
Intermediate

Re: Workflow Start Task Issue

It's Really helpful.

Thanks