Re: [jboss-user] [jBPM Development] - Update Deployment Resource
by Maurizio Trifici
Maurizio Trifici [http://community.jboss.org/people/trifix81] replied to the discussion
"Update Deployment Resource"
To view the discussion, visit: http://community.jboss.org/message/542850#542850
--------------------------------------------------------------
Hi,
I'm using JBPM 4.2 and gwt-console 1.0 (but customized). I have implemented the method updateDeployment into ProcessEnginePluginImpl in this way:
public String updateDeployment(String id, boolean versioning, String processName, String jpdl, int codabi) {
RepositoryService repoService = this.processEngine.getRepositoryService();
if (!versioning) {
repoService.updateDeploymentResource(id, "string.jpdl.xml",
new ByteArrayInputStream(jpdl.getBytes()));
return id;
} else {
return createDeployment(processName, jpdl, codabi);
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542850#542850]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [jBPM] - JBPM and Drool sample application throwing an Exception.
by Felix Jose
Felix Jose [http://community.jboss.org/people/FelixKJose] replied to the discussion
"JBPM and Drool sample application throwing an Exception."
To view the discussion, visit: http://community.jboss.org/message/542835#542835
--------------------------------------------------------------
Hi Maceij,
Thank you very much, that problem got solved. Now I am getting another exception as follows:
Exception in thread "main"
org.jbpm.api.JbpmException: error: drl problem: [ERR 101] Line 1:0 no viable alternative at input '<'
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(
ProblemList.java:175)at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(
ProblemList.java:141)at org.jbpm.pvm.internal.repository.DeployerManager.deploy(
DeployerManager.java:50)at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(
RepositorySessionImpl.java:61)at org.jbpm.pvm.internal.cmd.DeployCmd.execute(
DeployCmd.java:47)at org.jbpm.pvm.internal.cmd.DeployCmd.execute(
DeployCmd.java:33)at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(
DefaultCommandService.java:42)at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(
StandardTransactionInterceptor.java:54)at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(
EnvironmentInterceptor.java:53)at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(
EnvironmentInterceptor.java:40)at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(
RetryInterceptor.java:55)at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(
SkipInterceptor.java:43)at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(
DeploymentImpl.java:91)at com.felix.poc.MainDriver.main(
MainDriver.java:33)
Can you please give me resolution for the same?. I have tried with two types of rules files. And I am attaching both with this. Both the cases I am getting the same exception.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542835#542835]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
[jBPM] - JBPM and DRool sample application throwing exception.
by Felix Jose
Felix Jose [http://community.jboss.org/people/FelixKJose] created the discussion
"JBPM and DRool sample application throwing exception."
To view the discussion, visit: http://community.jboss.org/message/542788#542788
--------------------------------------------------------------
Hi All,
I have created a sample application for JBPMand DRool and it is giving the following exception. Also I have attached the sample application with this. Please give me a resolution for this exception.
Exception in thread "main"
java.lang.NullPointerException at org.jbpm.jpdl.internal.activity.RulesActivity.execute(
RulesActivity.java:51) at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(
ExecuteActivity.java:60) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(
ExecutionImpl.java:656) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(
ExecutionImpl.java:616) at org.jbpm.pvm.internal.model.ExecutionImpl.start(
ExecutionImpl.java:217) at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(
StartProcessInstanceCmd.java:61) at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(
StartProcessInstanceCmd.java:37) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(
DefaultCommandService.java:42) at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(
StandardTransactionInterceptor.java:54) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(
EnvironmentInterceptor.java:53) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(
EnvironmentInterceptor.java:40) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(
RetryInterceptor.java:55) at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(
SkipInterceptor.java:43) at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceById(
ExecutionServiceImpl.java:58) at com.felix.poc.MainDriver.main(
MainDriver.java:40)
Thank you,
Felix Jose
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542788#542788]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months