S
sjigesh
Guest
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"); } }
Continue reading...
Continue reading...