Solved

Error while creating new case using XML expression on button click

Hello Bizagi Support Team,


I am trying to create a new case using expression on a click event of a button. For this I have written an expression using XML. The case gets created successfully when I put this expression on exit (by clicking on next), but the same expression gives me error when I try to execute it on a click event of a button.


The XML expression to create case is as below:



var sXML ="<BizAgiWSParam>"; //start the xml dcument
sXML += "<domain>domain</domain>"; //domain of the user that will create the case
sXML += "<userName>chetan</userName>"; //user that will create the case
sXML += "<Cases><Case><Process>ChangeManagement</Process>"; //process name
sXML += "<Entities>"; //start of the business information
sXML += "<RFC>"; //name of the process entity
sXML += "<RequestedChagnes>" + <Ticket.Description> + "</RequestedChagnes>"; //business information <attribute>value</attribute>
sXML += "<Comments>Apply This Changes</Comments>"; //business information <attribute>value</attribute>
//sXML += "<AnalystDecision><Decision>Accept</Decision></AnalystDecision>"; //business information <attribute>value</attribute>
sXML += "</RFC></Entities></Case></Cases></BizAgiWSParam>"; //close the xml document
CHelper.NewCase(sXML);


The Error on portal:
Error processing Rule =3fcdfa2f-7d7a-454e-a44f-954c92eec414; Error: com.vision.bizagi.mozilla.javascript.WrappedException: WrappedException of env/ejb/WorkflowDAFacade -- service jboss.naming.context.java.comp.BizAgi-ear-JBoss.BizAgi-ejb.RuleFacadeBean.env.ejb.WorkflowDAFacade


Log files and the screen shot is attached here with for your kind consideration.


Thanks and Regards,


Chetan Sindhi

Comments (2)

photo
1

Dear Chetan,

A member of our support team will contact you to follow up this post.

Regards

photo
1

Dear Chetan,

The problem that you reported has been fixed. Please follow these steps to apply the solution:

https://bizagi.sharefile.com/d-saa3d86e3d2644a79

INSTRUCTIONS:

  1. Make a copy of the EAR used in the Bizagi Console JEE (usually located in \BizagiJEE\BizagiBPMJEE).
  2. Extract and copy the file (EAR) from the compressed file to the corresponding folder of the Bizagi JEE console, replacing the existing one. There must be only one EAR file in the \BizagiJEE\BizagiBPMJEE directory.
  3. Generate the entities of your project using the Bizagi JEE console (predeploy). Command: sh <JEECONSOLE_HOME>/bin/JEEConsoleManager.sh predeploy -o <OUTPUT_PATH> -p [PROJECT_NAME] -f <FILE_PATH>
  4. Open the project's folder and use the generated Bizagi's EAR file to publish the application (ask your web application administrator). It is recommended restarting the application and delete temporary files (optional).

Consider that:

  • <OUTPUT_PATH> is the optional path to specify where the EAR file will be generated. Do not use -o if this information is not to be included (by default, the output file will be generated as <JEECONSOLE_HOME>\projects\[PROJECT_NAME]\dist\BizAgi-ear-JBoss.ear) .
  • [PROJECT_NAME] is the project's name as specified in the XML at the <CONFIG_PATH>. Using -p for this parameter is mandatory.
  • <FILE_PATH> is the optional path where the basic .EAR distribution file is located (which needs to be referenced to generate the final .EAR).This file is initially delivered within the configuration inputs as <CONFIGURATION_INPUTS>\BizagiBPMJEE\Bizagi-ear-JBoss.ear.Do not use -f if this information is not to be included (when not specified, the location will be taken from the projectemplate.xml.)
  • If your configuration uses more than 1 node (cluster set up), you will need to use -c to specify that the predeploy should run with cluster considerations. Absence of this parameter will indicate that no cluster is involved (standalone set up).

Regards