IDEMPIERE-1030 Error when packing in workflows.
This commit is contained in:
parent
0f2f5001fd
commit
cee1db4c65
|
@ -56,6 +56,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
public void startElement(PIPOContext ctx, Element element)
|
public void startElement(PIPOContext ctx, Element element)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
List<String> excludes = defaultExcludeList(X_AD_Workflow.Table_Name);
|
List<String> excludes = defaultExcludeList(X_AD_Workflow.Table_Name);
|
||||||
|
excludes.add("AD_WF_Node_ID");
|
||||||
|
|
||||||
String entitytype = getStringValue(element, "EntityType");
|
String entitytype = getStringValue(element, "EntityType");
|
||||||
if (isProcessElement(ctx.ctx, entitytype)) {
|
if (isProcessElement(ctx.ctx, entitytype)) {
|
||||||
|
@ -119,10 +120,11 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
public void endElement(PIPOContext ctx, Element element) throws SAXException {
|
public void endElement(PIPOContext ctx, Element element) throws SAXException {
|
||||||
if (!element.defer && !element.skip && element.recordId > 0) {
|
if (!element.defer && !element.skip && element.recordId > 0) {
|
||||||
//set start node
|
//set start node
|
||||||
String value = getStringValue(element, "AD_WF_Node.Value");
|
String value = getStringValue(element, "AD_WF_Node_ID");
|
||||||
if (value != null && value.trim().length() > 0) {
|
if (value != null && value.trim().length() > 0) {
|
||||||
MWorkflow m_Workflow = new MWorkflow(ctx.ctx, element.recordId, getTrxName(ctx));
|
MWorkflow m_Workflow = new MWorkflow(ctx.ctx, element.recordId, getTrxName(ctx));
|
||||||
int id = findIdByColumnAndParentId(ctx, "AD_WF_Node", "Value", value, "AD_Workflow", m_Workflow.getAD_Workflow_ID());
|
PoFiller filler = new PoFiller(ctx, m_Workflow, element, this);
|
||||||
|
int id = filler.setTableReference("AD_WF_Node_ID");
|
||||||
if (id <= 0) {
|
if (id <= 0) {
|
||||||
log.warning("Failed to resolve start node reference for workflow element. Workflow="
|
log.warning("Failed to resolve start node reference for workflow element. Workflow="
|
||||||
+ m_Workflow.getName() + " StartNode=" + value);
|
+ m_Workflow.getName() + " StartNode=" + value);
|
||||||
|
|
Loading…
Reference in New Issue