Hi All,
I am able to convert an erf file to .eds programmatically (by using precompile method). However it differs slightly with the one that is generated through console.
I feel that if I add the below parameters to either the ICCServer/ICDeploy classes it will generate the same file as the one that is generated in the console
1) Minimum Pool Size
2) Maxximum Pool Size
3) Dynamic Reload : Yes
4) XML Messaging Style : Hier
Please assist on which class should I invoke or how should I make the precompile method run with the above 4 parameters
Below is the code that I am using
package com;
import cli.System.Console;
import com.corticon.eclipse.server.core.ICcServer;
import com.corticon.eclipse.server.core.impl.CcServerImpl;
import com.corticon.eclipse.studio.deployment.swing.CcDeployFactory;
import com.corticon.eclipse.studio.deployment.swing.ICcDeploy;
import com.corticon.service.ccserver.exception.CcServerFileOrDirNotFoundException;
import com.corticon.service.ccserver.exception.CcServerInvalidArgumentException;
import com.corticon.service.ccserver.exception.CcServerInvalidDecisionServiceException;
import com.corticon.service.ccserver.exception.CcServerInvalidSandboxException;
public class CorticonEDS {
public static void main(String[] args) throws CcServerInvalidSandboxException, CcServerFileOrDirNotFoundException, CcServerInvalidArgumentException, CcServerInvalidDecisionServiceException {
CorticonEDS TC = new CorticonEDS();
TC.preCompileService();
}
public void preCompileService() throws CcServerInvalidSandboxException, CcServerFileOrDirNotFoundException, CcServerInvalidArgumentException, CcServerInvalidDecisionServiceException{
// ICcDeploy d = CcDeployFactory.newDeployment();
ICcServer d =new CcServerImpl();
d.precompileDecisionService("C:\\ Rule_Flow \\P_Ruleflow.erf", "P_Ruleflow", "C:\\Rule_Flow", true);
System.out.println("Completed");
}
}
Christopher S. Hogan
Principal Systems Engineer |
||||
PHONE 646-201-4123 MOBILE 646-243-4282 www.progress.com |
Hi All,
I am able to convert an erf file to .eds programmatically (by using precompile method). However it differs slightly with the one that is generated through console.
I feel that if I add the below parameters to either the ICCServer/ICDeploy classes it will generate the same file as the one that is generated in the console
1) Minimum Pool Size
2) Maxximum Pool Size
3) Dynamic Reload : Yes
4) XML Messaging Style : Hier
Please assist on which class should I invoke or how should I make the precompile method run with the above 4 parameters
Below is the code that I am using
package com;
import cli.System.Console;
import com.corticon.eclipse.server.core.ICcServer;
import com.corticon.eclipse.server.core.impl.CcServerImpl;
import com.corticon.eclipse.studio.deployment.swing.CcDeployFactory;
import com.corticon.eclipse.studio.deployment.swing.ICcDeploy;
import com.corticon.service.ccserver.exception.CcServerFileOrDirNotFoundException;
import com.corticon.service.ccserver.exception.CcServerInvalidArgumentException;
import com.corticon.service.ccserver.exception.CcServerInvalidDecisionServiceException;
import com.corticon.service.ccserver.exception.CcServerInvalidSandboxException;
public class CorticonEDS {
public static void main(String[] args) throws CcServerInvalidSandboxException, CcServerFileOrDirNotFoundException, CcServerInvalidArgumentException, CcServerInvalidDecisionServiceException {
CorticonEDS TC = new CorticonEDS();
TC.preCompileService();
}
public void preCompileService() throws CcServerInvalidSandboxException, CcServerFileOrDirNotFoundException, CcServerInvalidArgumentException, CcServerInvalidDecisionServiceException{
// ICcDeploy d = CcDeployFactory.newDeployment();
ICcServer d =new CcServerImpl();
d.precompileDecisionService("C:\\ Rule_Flow \\P_Ruleflow.erf", "P_Ruleflow", "C:\\Rule_Flow", true);
System.out.println("Completed");
}
}
Flag this post as spam/abuse.
Then how does deployment console sets these parameters.
Cant we simulate the code so that it will work the same way as deployment console. I strongly feel that we are able to do it through console then there should be some way where we can do it through the code.The deploiyment console does invoke some piece of code . if we can do the same way ...we should be able to achieve the results
Cant we do something like
CcServerDeploymentObject CCDepObj = new CcServerDeploymentObject();
CCDepObj.setMaxPoolSize(5);
CCDepObj.setMinPoolSize(1);
CCDepObj.setAutoReloadRules(true);
CCDepObj.setMsgStructureType("Hier");
//CCDepObj.setVocabularyUri("C:\\Jigesh-HBE\\Dev1\\Source\\Business\\Eligibility\\EDBCBusinessRules\\Ky.Hbe.Edbc.Rules\\EDBC_R5\\Vocabulary\\SNAP.ecore");
ICC.precompileDecisionService("C:\\Jigesh-HBE\\Dev1\\Source\\Business\\Eligibility\\EDBCBusinessRules\\Ky.Hbe.Edbc.Rules\\EDBC_R5\\Rule_Flow\\SNAP_Ruleflow.erf", "SNAP_Ruleflow", "C:\\Jigesh-HBE\\Dev1\\Source\\Business\\Eligibility\\EDBCBusinessRules\\Ky.Hbe.Edbc.Rules\\EDBC_R5\\Rule_Flow", true);
Christopher S. Hogan
Principal Systems Engineer |
||||
PHONE 646-201-4123 MOBILE 646-243-4282 www.progress.com |
Then how does deployment console sets these parameters.
Cant we simulate the code so that it will work the same way as deployment console. I strongly feel that we are able to do it through console then there should be some way where we can do it through the code.The deploiyment console does invoke some piece of code . if we can do the same way ...we should be able to achieve the results
Cant we do something like
CcServerDeploymentObject CCDepObj = new CcServerDeploymentObject();
CCDepObj.setMaxPoolSize(5);
CCDepObj.setMinPoolSize(1);
CCDepObj.setAutoReloadRules(true);
CCDepObj.setMsgStructureType("Hier");
//CCDepObj.setVocabularyUri("C:\\Jigesh-HBE\\Dev1\\Source\\Business\\Eligibility\\EDBCBusinessRules\\Ky.Hbe.Edbc.Rules\\EDBC_R5\\Vocabulary\\SNAP.ecore");
ICC.precompileDecisionService("C:\\Jigesh-HBE\\Dev1\\Source\\Business\\Eligibility\\EDBCBusinessRules\\Ky.Hbe.Edbc.Rules\\EDBC_R5\\Rule_Flow\\SNAP_Ruleflow.erf", "SNAP_Ruleflow", "C:\\Jigesh-HBE\\Dev1\\Source\\Business\\Eligibility\\EDBCBusinessRules\\Ky.Hbe.Edbc.Rules\\EDBC_R5\\Rule_Flow", true);
Flag this post as spam/abuse.
As mentioned in the discussion thread Automate (community.progress.com/.../20064.aspx)
Please review KB article below for detailed API methods:
knowledgebase.progress.com/.../000057671
knowledgebase.progress.com/.../000050949
- Jan
Thanks Jan and Chris. I am able to generate .eds file using addDecisonService and Precompile methods.
However I am still unable to figure out that the eds file that is generated through console does not exactly match with one that is generated through precompile/addDecison service method for the same erf file.
File Size for eds generated through console is 12.2 MB
File Size for eds generated through precompile/addDecision service is 12.5 MB
Is there any way I can analyze and find out or any solution through which I create same file programmatically so that it will exactly match with the one that is generated through Console