PInstanceProcessData.insertPInstance(this, pinstance, "111", (("C_Invoice_ID".equalsIgnoreCase("AD_Language"))?"0":strC_Invoice_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
HeaderData.updateDocAction(this, strdocaction, strC_Invoice_ID);
ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
new ProcessRunner(bundle).execute(this);
PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
} catch (ServletException ex) {
myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
if (!myMessage.isConnectionAvailable()) {
bdErrorConnection(response);
return;
} else vars.setMessage(tabId, myMessage);
}
//close popup
if (myMessage!=null) {
if (log4j.isDebugEnabled()) log4j.debug(myMessage.getMessage());
vars.setMessage(tabId, myMessage);
}
printPageClosePopUp(response, vars);
} else if (vars.commandIn("SAVE_BUTTONSalikprocess51293AD6283E46398793A02C1B06E851")) {
String strC_Invoice_ID = vars.getGlobalVariable("inpKey", windowId + "|C_Invoice_ID", "");
@SuppressWarnings("unused")
String strsalikprocess = vars.getStringParameter("inpsalikprocess");
String strProcessing = vars.getStringParameter("inpprocessing");
OBError myMessage = null;
try {
String pinstance = SequenceIdData.getUUID();
PInstanceProcessData.insertPInstance(this, pinstance, "51293AD6283E46398793A02C1B06E851", (("C_Invoice_ID".equalsIgnoreCase("AD_Language"))?"0":strC_Invoice_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
new ProcessRunner(bundle).execute(this);
PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
} catch (ServletException ex) {
myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
if (!myMessage.isConnectionAvailable()) {
bdErrorConnection(response);
return;
} else vars.setMessage(tabId, myMessage);
}
//close popup
if (myMessage!=null) {
if (log4j.isDebugEnabled()) log4j.debug(myMessage.getMessage());
vars.setMessage(tabId, myMessage);
}
printPageClosePopUp(response, vars);
} else if (vars.commandIn("SAVE_BUTTONFineprocess397DCE733F6A4C97A5CBDD5E9B5B29F1")) {
String strC_Invoice_ID = vars.getGlobalVariable("inpKey", windowId + "|C_Invoice_ID", "");
@SuppressWarnings("unused")
String strfineprocess = vars.getStringParameter("inpfineprocess");
String strProcessing = vars.getStringParameter("inpprocessing");
OBError myMessage = null;
try {
String pinstance = SequenceIdData.getUUID();
PInstanceProcessData.insertPInstance(this, pinstance, "397DCE733F6A4C97A5CBDD5E9B5B29F1", (("C_Invoice_ID".equalsIgnoreCase("AD_Language"))?"0":strC_Invoice_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
new ProcessRunner(bundle).execute(this);
PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
} catch (ServletException ex) {
myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());