[jBPM] - Passing work item results to process variables
by David Harris
David Harris [https://community.jboss.org/people/dmwpepper] created the discussion
"Passing work item results to process variables"
To view the discussion, visit: https://community.jboss.org/message/811330#811330
--------------------------------------------------------------
In my executeWorkItem method, I have
Map<String,Object> results = new HashMap<String,Object>();
results.put("Source_IP", "333.33.333.33");
results.put("Start_Date", "1999 01 01");
results.put("End_Date", "2000 01 01");
manager.completeWorkItem(workItem.getId(),results);
Chapter 14 of the User Guide says:
Result Mapping: Allows you to map a result (returned once a work item has been executed) to a variable of the process. This allows you to use results in the remainder of the process.
In Eclipse, there is a "Result Mapping" attribute associated with the service task. Do I create an association between the results variable and the process variable by using the "Result Mapping" attribute? The association seems to go in backwards. In other words, the Parameter (work item) and Variable (process) only go in one way, so I can't put the work item result into the process variable. I can only put the process variable into a work item result, which is the opposite of what I need to do. So, I know I'm doing this wrong, but not sure how to do this with the Result Mapping, if that's the way its supposed to work. Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/811330#811330]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
Application logs are not getting logged in the logs defined in jboss 7.0.2
by Kevin Peterson
Hi,
I am using the below appenders in my domain.xml file to point all the logs from my application to app.log. I see the file is getting created but there are no logging happening.
<periodic-rotating-file-handler name="CACHE-FILE" autoflush="true">
<level name="DEBUG"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="app.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.abc.cache" use-parent-handlers="false">
<level name="DEBUG"/>
<handlers>
<handler name="CACHE-FILE"/>
</handlers>
</logger>
Thanks,
Kevin Peterson
12 years, 6 months
[jBPM] - Problem when deploying a jbpm web app into jboss
by Hongsi Hu
Hongsi Hu [https://community.jboss.org/people/crazyindark] created the document:
"Problem when deploying a jbpm web app into jboss"
To view the document, visit: https://community.jboss.org/docs/DOC-48734
--------------------------------------------------------------
Hi all
I'm a newbie to jBPM & jBoss,
I used jBPM installer and tested it well, but then I try to develop a web-app myself, so I download this https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-ex... https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-ex... example. I made war package and put it into jboss deployment folder, but it keeps failing. The log says:
16:47:04,169 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."jbpm5webexample.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm5webexample.war".INSTALL: *Failed to process phase INSTALL of deployment "jbpm5webexample.war"*
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: *JBAS011446: Failed to add persistence unit service for org.jbpm.task*
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:383)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: *Service jboss.persistenceunit."jbpm5webexample.war#org.jbpm.task" is already registered*
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:374)
... 9 more
How to resolve this *"jbpm5webexample.war#org.jbpm.task" is already registered* problem? Pls help me on this!
Regards
Hu Hongsi
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-48734]
Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 6 months
[jBPM] - Re: some problems with jBpm5.3 using mysql
by dapeng king
dapeng king [https://community.jboss.org/people/dapengking] created the discussion
"Re: some problems with jBpm5.3 using mysql"
To view the discussion, visit: https://community.jboss.org/message/816229#816229
--------------------------------------------------------------
Hi Irshad:
Thanks a lot for your patience . I did as the link you give me above . After I changed all the files , I run the command " ant install.db.files" . And it showed me the "successful" msg . But If I want to start the JBoss , and run the sample attached in the jBpm5.4-final in the eclipse , what should I do?
I looked up in the *build.xml* file , found that the Command Line "install.demo" just call the function "*install.jboss,install.db.files,install.guvnor.into.jboss,install.designer.into.jboss,install.jBPM-gwt-console.into.jboss,install.jBPM-ht.into.jboss,install.form.builder.into.jboss,install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse*" . Could I just change the command for example : I change it into "*install.jboss,install.db.files,install.jBPM-ht.into.jboss,install.eclipse,install.jBPM.runtime,install.droolsjbpm-eclipse.into.eclipse*" , Then run the command "ant install.demo" to install the environment for minimal ? But I did it , it did not work well ... ( after the install command , I can't start the jBoss . The log file tell me the war is deployed failed .)
And then I reinstall all the jBpm5.4 . Changed all the files as the steps . And *did not* change the bulid.xml as I said above . This time I run "ant start.demo" , after the eclipse started , I imported the sample . But I can not run it . The console tells "Unable to connect to server using configuration org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5153&host=127-0-0-1" . And when I visited the jBPM Console in my web browser , it showed the msg as the pic.
https://community.jboss.org/servlet/JiveServlet/showImage/2-816229-20752/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-816229-20...
I don't know what should I do ...
Thanks again , And I feel very sorry to trouble you . Any help will be thankful !
Wishes!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816229#816229]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[Datasource Configuration] - OracleValidConnectionChecker in JBOSS 7.1.3 ?
by ANAND KUMAR GEORGE PREM KUMAR
ANAND KUMAR GEORGE PREM KUMAR [https://community.jboss.org/people/georgesg] created the discussion
"OracleValidConnectionChecker in JBOSS 7.1.3 ?"
To view the discussion, visit: https://community.jboss.org/message/816417#816417
--------------------------------------------------------------
I am migrating application from jboss 4.3 to Jboss 7.1.3 Final.
I have used Iron Jacamar Tool to translate the datasource configuration xml from jboss 4.3 to jboss 7.1.3 and the validation part translated as below (Complete translated datasource attached for reference). In Jboss 4.3, Jboss's properietory jar file "jboss-common-jdbc-wrapper.jar" is used to perform this validation. Incase of Jboss 7.1.3 is there any equivalent feature ?
<validation>
<valid-connection-checker class-name="org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker"/>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<use-fast-fail>false</use-fast-fail>
<exception-sorter class-name="org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter"/>
</validation>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816417#816417]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[JBoss Tools] - JBOSS WSTools does not support abstract complexTypes
by roopachakra
roopachakra [https://community.jboss.org/people/roopachakra] created the discussion
"JBOSS WSTools does not support abstract complexTypes"
To view the discussion, visit: https://community.jboss.org/message/816368#816368
--------------------------------------------------------------
Generated client code using JBOSS WS. For below complex type it created abstract class.
<s:complexType abstract="true" name="MessageOption">
</s:complexType>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MessageOption")
public abstract class MessageOption {
}
while testing the application in standalone mode I get below exception. I am running this test sample using JBOSS EAP 5.1.0 and JDK 1.6.0. JBOSS tools 4.0.1
Please let me if anyone has come across such problem and solved it.
javax.xml.ws.soap.SOAPFaultException: Exception during processing: java.lang.Error: cannot create abstract type: com.sps.es.notification.webservice.MessageOption (see Fault Detail for stacktrace)
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:85)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:558)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:396)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at $Proxy15.sendNotification(Unknown Source)
at com.sps.nes.client.clientsample.ClientSample.main(ClientSample.java:183)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816368#816368]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months