Commit d0f522ae authored by Mathieu Lirzin's avatar Mathieu Lirzin

Fixed: Remove obsolete references to WorkflowActivity (OFBIZ-11303)

The workflow component is in attic since 7 years.
parent c764a90b
......@@ -498,16 +498,6 @@ if (workEffortId && assignPartyId && assignRoleTypeId && fromDate) {
if ("WF_RUNNING".equals(workEffortStatus) || "WF_SUSPENDED".equals(workEffortStatus))
context.inProcess = true
}
if (workEffort) {
if ("true".equals(delegate) || "WF_RUNNING".equals(workEffortStatus)) {
activity = from("WorkflowActivity").where("packageId", workEffort.workflowPackageId, "packageVersion", workEffort.workflowPackageVersion, "processId", workEffort.workflowProcessId, "processVersion", workEffort.workflowProcessVersion, "activityId", workEffort.workflowActivityId).queryOne()
if (activity) {
transitions = activity.getRelated("FromWorkflowTransition", null, ["-transitionId"], false)
context.wfTransitions = transitions
}
}
}
}
}
......
......@@ -64,44 +64,3 @@ under the License.
</div>
</#if>
<br />
<#if wfTransitions?? && wfTransitions?has_content>
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">${uiLabelMap.OrderProcessingTransitions}</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<table class="basic-table" cellspacing='0'>
<tr>
<td>
<form action="<@ofbizUrl>completeassignment</@ofbizUrl>" method="post" name="transitionForm">
<input type="hidden" name="workEffortId" value="${workEffortId}" />
<input type="hidden" name="partyId" value="${assignPartyId}" />
<input type="hidden" name="roleTypeId" value="${assignRoleTypeId}" />
<input type="hidden" name="fromDate" value="${fromDate}" />
<table class="basic-table" cellspacing='0'>
<tr>
<td>
<select name="approvalCode">
<#list wfTransitions as trans>
<#if trans.extendedAttributes?has_content>
<#assign attrs = Static["org.apache.ofbiz.base.util.StringUtil"].strToMap(trans.extendedAttributes)>
<#if attrs.approvalCode??>
<option value="${attrs.approvalCode}">${trans.transitionName}</option>
</#if>
</#if>
</#list>
</select>
</td>
<td valign="center">
<a href="javascript:document.transitionForm.submit()" class="buttontext">${uiLabelMap.CommonContinue}</a>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</#if>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment