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.
Solved! Go to Solution.
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!
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
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!
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.