* [ 1808923 ] PackIn Exception
This commit is contained in:
parent
27217eea58
commit
0076b1cfb5
|
@ -67,10 +67,10 @@ public class DynValRuleElementHandler extends AbstractElementHandler {
|
|||
m_ValRule.setType(atts.getValue("Type"));
|
||||
m_ValRule.setCode(atts.getValue("Code"));
|
||||
if (m_ValRule.save(getTrxName(ctx)) == true){
|
||||
record_log (ctx, 1, m_ValRule.getName(),"Task", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Val_Rule", "Name", "AD_Val_Rule"));
|
||||
record_log (ctx, 1, m_ValRule.getName(),"Task", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Val_Rule"));
|
||||
}
|
||||
else{
|
||||
record_log (ctx, 0, m_ValRule.getName(),"Task", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Val_Rule", "Name", "AD_Val_Rule"));
|
||||
record_log (ctx, 0, m_ValRule.getName(),"Task", m_ValRule.get_ID(),AD_Backup_ID, Object_Status,"AD_Val_Rule",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Val_Rule"));
|
||||
throw new POSaveFailedException("Failed to save dynamic validation rule.");
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -64,10 +64,10 @@ public class MessageElementHandler extends AbstractElementHandler {
|
|||
m_Message.setValue(value);
|
||||
m_Message.setMsgType(atts.getValue("MsgType"));
|
||||
if (m_Message.save(getTrxName(ctx)) == true){
|
||||
record_log (ctx, 1, m_Message.getValue(),"Message", m_Message.get_ID(),AD_Backup_ID, Object_Status,"AD_Message",get_IDWithColumn(ctx, "AD_Message", "value", "AD_Message"));
|
||||
record_log (ctx, 1, m_Message.getValue(),"Message", m_Message.get_ID(),AD_Backup_ID, Object_Status,"AD_Message",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Message"));
|
||||
}
|
||||
else{
|
||||
record_log (ctx, 0, m_Message.getValue(),"Message", m_Message.get_ID(),AD_Backup_ID, Object_Status,"AD_Message",get_IDWithColumn(ctx, "AD_Message", "value", "AD_Message"));
|
||||
record_log (ctx, 0, m_Message.getValue(),"Message", m_Message.get_ID(),AD_Backup_ID, Object_Status,"AD_Message",get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_Message"));
|
||||
throw new POSaveFailedException("Failed to save message.");
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -146,7 +146,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
|||
log.info("m_Workflow save success");
|
||||
record_log(ctx, 1, m_Workflow.getName(), "Workflow", m_Workflow
|
||||
.get_ID(), AD_Backup_ID, Object_Status, "AD_Workflow",
|
||||
get_IDWithColumn(ctx, "AD_Workflow", "Name",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName",
|
||||
"AD_Workflow"));
|
||||
workflows.add(m_Workflow.getAD_Workflow_ID());
|
||||
element.recordId = m_Workflow.getAD_Workflow_ID();
|
||||
|
@ -154,7 +154,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
|||
log.info("m_Workflow save failure");
|
||||
record_log(ctx, 0, m_Workflow.getName(), "Workflow", m_Workflow
|
||||
.get_ID(), AD_Backup_ID, Object_Status, "AD_Workflow",
|
||||
get_IDWithColumn(ctx, "AD_Workflow", "Name",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName",
|
||||
"AD_Workflow"));
|
||||
throw new POSaveFailedException("MWorkflow");
|
||||
}
|
||||
|
|
|
@ -224,13 +224,13 @@ public class WorkflowNodeElementHandler extends AbstractElementHandler {
|
|||
log.info("m_WFNode save success");
|
||||
record_log(ctx, 1, m_WFNode.getName(), "WFNode", m_WFNode
|
||||
.get_ID(), AD_Backup_ID, Object_Status, "AD_WF_Node",
|
||||
get_IDWithColumn(ctx, "AD_WF_Node", "Name",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName",
|
||||
"AD_WF_Node"));
|
||||
} else {
|
||||
log.info("m_WFNode save failure");
|
||||
record_log(ctx, 0, m_WFNode.getName(), "WFNode", m_WFNode
|
||||
.get_ID(), AD_Backup_ID, Object_Status, "AD_WF_Node",
|
||||
get_IDWithColumn(ctx, "AD_WF_Node", "Name",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName",
|
||||
"AD_WF_Node"));
|
||||
throw new POSaveFailedException("WorkflowNode");
|
||||
}
|
||||
|
|
|
@ -136,8 +136,8 @@ public class WorkflowNodeNextConditionElementHandler extends
|
|||
AD_Backup_ID,
|
||||
Object_Status,
|
||||
"AD_WF_NextCondition",
|
||||
get_IDWithColumn(ctx, "AD_WF_NextCondition",
|
||||
"ad_wf_nextcondition_id", "AD_WF_NextCondition"));
|
||||
get_IDWithColumn(ctx, "AD_Table",
|
||||
"TableName", "AD_WF_NextCondition"));
|
||||
} else {
|
||||
log.info("m_WFNodeNextCondition save failure");
|
||||
record_log(
|
||||
|
@ -149,8 +149,8 @@ public class WorkflowNodeNextConditionElementHandler extends
|
|||
AD_Backup_ID,
|
||||
Object_Status,
|
||||
"AD_WF_NextCondition",
|
||||
get_IDWithColumn(ctx, "AD_WF_NextCondition",
|
||||
"ad_wf_nextcondition_id", "AD_WF_NextCondition"));
|
||||
get_IDWithColumn(ctx, "AD_Table",
|
||||
"TableName", "AD_WF_NextCondition"));
|
||||
throw new POSaveFailedException("WorkflowNodeNextCondition");
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -96,11 +96,13 @@ public class WorkflowNodeNextElementHandler extends AbstractElementHandler {
|
|||
log.info("about to execute m_WFNodeNext.save");
|
||||
if (m_WFNodeNext.save(getTrxName(ctx)) == true){
|
||||
log.info("m_WFNodeNext save success");
|
||||
record_log (ctx, 1, String.valueOf(m_WFNodeNext.get_ID()),"WFNodeNext", m_WFNodeNext.get_ID(),AD_Backup_ID, Object_Status,"AD_WF_NodeNext",get_IDWithColumn(ctx, "AD_WF_NodeNext", "ad_wf_nodenext_id", "AD_WF_NodeNext"));
|
||||
record_log (ctx, 1, String.valueOf(m_WFNodeNext.get_ID()),"WFNodeNext", m_WFNodeNext.get_ID(),AD_Backup_ID, Object_Status,"AD_WF_NodeNext",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_WF_NodeNext"));
|
||||
}
|
||||
else{
|
||||
log.info("m_WFNodeNext save failure");
|
||||
record_log (ctx, 0, String.valueOf(m_WFNodeNext.get_ID()),"WFNode", m_WFNodeNext.get_ID(),AD_Backup_ID, Object_Status,"AD_WF_NodeNext",get_IDWithColumn(ctx, "AD_WF_NodeNext", "ad_wf_nodenext_id", "AD_WF_NodeNext"));
|
||||
record_log (ctx, 0, String.valueOf(m_WFNodeNext.get_ID()),"WFNode", m_WFNodeNext.get_ID(),AD_Backup_ID, Object_Status,"AD_WF_NodeNext",
|
||||
get_IDWithColumn(ctx, "AD_Table", "TableName", "AD_WF_NodeNext"));
|
||||
throw new POSaveFailedException("WorkflowNodeNext");
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue