cancel
Showing results for 
Search instead for 
Did you mean: 

"This task is unassigned" error - Alfresco share

upforsin
Star Collaborator
Star Collaborator

Hello,

From one user task i'm invoking a second one. The problem is that the error 

This task is unassigned; 

A form could not be found, has an 'itemKind' and 'itemId' been provided?

comes up. 

And in alfresco share below a task there is a black "UNASSIGED" message.

What does it mean? Anyone has faced it and knows how to fix it?

Here is the userTask code from process.bpmn20.xml:

<userTask id="productionTask" name="Production Task" activiti:candidateGroups="GROUP_ProductionLeaders" activiti:formKey="snmr:activitiProductionReview">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[var approveRejectOutcome = 'Reject';
if(task.getVariableLocal('snmr_approveRejectOutcome') == 'Approve') {
var approveRejectOutcome = 'Approve';
}
execution.setVariable('snmr_approveRejectOutcome', approveRejectOutcome);]]>
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>

Form is defined in model.xml:

<type name="snmr:activitiProductionReview">
<parent>snmr:activitiReviewTask</parent>
</type>

And here is configured with Alfresco Share ( share-config-custom.xml 😞

<config evaluator="task-type"
condition="snmr:activitiProductionReview">

<forms>
<form id="workflow-details">
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="packageItems" />
<show id="snmr:approveRejectOutcome" />
<show id="transitions" />
<show id="snmr:invoiceId" />
<show id="snmr:totalInvoiceAmount" />
<show id="snmr:departmentId" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general" />
<set id="info" appearance=""
template="/org/alfresco/components/form/2-column-set.ftl" />

<set id="assignee" appearance="title"
label-id="workflow.set.assignee" />

<set id="items" appearance="title"
label-id="workflow.set.items" />

<set id="progress" appearance="title"
label-id="workflow.set.task.progress" />

<set id="response" appearance="title"
label-id="workflow.set.response" />

<field id="bpm:workflowDescription"
label-id="workflow.field.message">

<control
template="/org/alfresco/components/form/controls/textarea.ftl">

<control-param name="style">width: 95%</control-param>
</control>
</field>
<field id="packageItems" set="items" />
<field id="snmr:approveRejectOutcome" set="response" />
<field id="transitions" set="response" />
<field id="snmr:invoiceId" set="other" />
<field id="snmr:totalInvoiceAmount" set="other" />
<field id="snmr:departmentId" set="other" />
</appearance>
</form>
<form>
<field-visibility>
<show id="bpm:workflowDescription" />
<show id="packageItems" />
<show id="snmr:approveRejectOutcome" />
<show id="transitions" />
<show id="snmr:invoiceId" />
<show id="snmr:totalInvoiceAmount" />
<show id="snmr:departmentId" />
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general" />
<set id="info" appearance=""
template="/org/alfresco/components/form/2-column-set.ftl" />

<set id="assignee" appearance="title"
label-id="workflow.set.assignee" />

<set id="items" appearance="title"
label-id="workflow.set.items" />

<set id="progress" appearance="title"
label-id="workflow.set.task.progress" />

<set id="response" appearance="title"
label-id="workflow.set.response" />

<field id="bpm:workflowDescription"
label-id="workflow.field.message">

<control
template="/org/alfresco/components/form/controls/textarea.ftl">

<control-param name="style">width: 95%</control-param>
</control>
</field>
<field id="packageItems" set="items" />
<field id="snmr:approveRejectOutcome" set="response" />
<field id="transitions" set="response" />
<field id="snmr:invoiceId" set="other" />
<field id="snmr:totalInvoiceAmount" set="other" />
<field id="snmr:departmentId" set="other" />
</appearance>
</form>
</forms>
</config>

I would appreciate any help.

howkymike
Alfresco Developer
1 ACCEPTED ANSWER

upforsin
Star Collaborator
Star Collaborator

Sorry for the delayed replay. It was a stupid mistake. A workflow has not been updated, i just had to manually redeploy it in the workflow console.

Anyway, big thanks for help!

howkymike
Alfresco Developer

View answer in original post

2 REPLIES 2

vidhipanchal
Star Contributor
Star Contributor

Hi,

<parent>snmr:activitiReviewTask</parent>


Is this parent type created in your custom model.xml? if yes than please check once, Did this model registere properly?

Regards,

Vidhi

ContCentric

Regards,
Vidhi

upforsin
Star Collaborator
Star Collaborator

Sorry for the delayed replay. It was a stupid mistake. A workflow has not been updated, i just had to manually redeploy it in the workflow console.

Anyway, big thanks for help!

howkymike
Alfresco Developer