[jBPM] - Re: TaskClient not connecting
by npereira
npereira [http://community.jboss.org/people/npereira] created the discussion
"Re: TaskClient not connecting"
To view the discussion, visit: http://community.jboss.org/message/604402#604402
--------------------------------------------------------------
Hi bpmn2user,
Thanks for your reply, but unfortunatly I wasn't able to connect. I tried,
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
taskHandler.setConnection("10.1.5.148", 9123);
*taskHandler.connect();*
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
taskHandler.setClient(client);
if(client.connect())
System.out.println("OK");
else
System.out.println("NOT OK");
But on the highlighted line, I get the following error,
Exception in thread "main" java.lang.IllegalArgumentException: Could not connect task client
at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.connect(CommandBasedWSHumanTaskHandler.java:88)
Does it make any sense to you? Is it something I'm missing in my code?
Regards,
Nelson
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604402#604402]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - Jpdl deployment internals in jbpm4.4
by Samrat Roy
Samrat Roy [http://community.jboss.org/people/whizkid.samrat] created the discussion
"Jpdl deployment internals in jbpm4.4"
To view the discussion, visit: http://community.jboss.org/message/604385#604385
--------------------------------------------------------------
Hi All,
I have a question regarding how the jpdls are deployed using repository service. I know the api methods; what I am trying to ask are the internals.
1. when I say .. repositoryService.createDeployment().addResourceFromClasspath(jpdl).addResourceFromClasspath(pngPath).deploy();
how does the api go about deploying it ? *are the jpdl / jpdl locations kept in the memory , or are they uploaded to the attached database* ? if they are uploaded to a database , I ask the table name and the column name of the table.
2. I ask this because I have noticed deploying a jpdl resource takes quite a bit of time , so idealy , I would like to deploy the jpdls only if the resource has changed , but if the jpdls are kept in the memory somewhere in a hashmap or so.. , this would mean I will have to deploy them after every server re-start.
I did check the java file written by tom bayens.. *org.jbpm.pvm.internal.repository.RepositoryCacheImpl* this suggests that the jpdls are kept in the memory ..
I need an insight .. please help..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604385#604385]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - jbpm 5.1
by new -user
new -user [http://community.jboss.org/people/new-user] created the discussion
"jbpm 5.1"
To view the discussion, visit: http://community.jboss.org/message/594170#594170
--------------------------------------------------------------
I downloaded the 5.1 version and imported a eclipse project which was created using 5.0.
I am getting following exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: defaultPackage.Process_defaultPackage_0.action0(Lorg/drools/runtime/process/ProcessContext;Ljava/lang/String;Ljava/util/HashMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:9**
What could be the reason please. This is working fine in 5.0
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/594170#594170]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - Re: IdentityService
by Dámaris Suárez
Dámaris Suárez [http://community.jboss.org/people/dhamaris] created the discussion
"Re: IdentityService"
To view the discussion, visit: http://community.jboss.org/message/604371#604371
--------------------------------------------------------------
Hello, I just found a way:
ProcessEngine processEngine = new Configuration().buildProcessEngine();
IdentityService id = processEngine.getIdentityService();
Having this in my applicationContext-process:
<bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
And having implemented a class IdentityServiceImpl that basically calls to IdentityService methods:
public class IdentitySessionImpl implements IdentitySession{
IdentitySession identitySession;
IdentitySessionImpl()
{
//Load users and groups from the DB
}
public IdentitySession getidentitySession()
{
return identitySession;
}
public void createUser(String userId, String givenName, String familyName) {
identitySession.createUser(userId, givenName, familyName, familyName);
}
public User findUserById(String userId) {
return identitySession.findUserById(userId);
}
public List<User> findUsers() {
return identitySession.findUsers();
}
public void deleteUser(String userId) {
identitySession.deleteUser(userId);
}
public String createGroup(String groupName) {
return identitySession.createGroup(groupName, groupName, groupName);
}
public String createGroup(String groupName, String groupType) {
return identitySession.createGroup(groupName, groupType, groupType);
}
public String createGroup(String groupName, String groupType,
String parentGroupId) {
return identitySession.createGroup(groupName, groupType, parentGroupId);
}
public Group findGroupById(String groupId) {
return identitySession.findGroupById(groupId);
}
public List<Group> findGroupsByUserAndGroupType(String userId,
String groupType) {
return identitySession.findGroupsByUserAndGroupType(userId, groupType);
}
public List<Group> findGroupsByUser(String userId) {
return identitySession.findGroupsByUser(userId);
}
public void deleteGroup(String groupId) {
identitySession.deleteGroup(groupId);
}
public void createMembership(String userId, String groupId, String role) {
identitySession.createMembership(userId, groupId, role);
}
public void deleteMembership(String userId, String groupId, String role) {
identitySession.deleteMembership(userId, groupId, role);
}
public List<User> findUsersByGroup(String groupId) {
return identitySession.findUsersByGroup(groupId);
// TODO Auto-generated method stub
}
public String createUser(String userId, String givenName,
String familyName, String businessEmail) {
return identitySession.createUser(userId, givenName, familyName, businessEmail);
// TODO Auto-generated method stub
}
public List<User> findUsersById(String userIds) {
return identitySession.findUsersById(userIds);
}
public List<User> findUsersById(String... userIds) {
// TODO Auto-generated method stub
return null;
}
}
In my cfg.jpdl.xml I just have this:
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm.default.cfg.xml" />
<import resource="jbpm.tx.spring.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.bpmn.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.businesscalendar.cfg.xml" />
<import resource="jbpm.console.cfg.xml" />
<!-- Commented out for dev environment only. -->
<import resource="jbpm.jobexecutor.cfg.xml" />
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<command-service name="txRequiredCommandService">
<skip-interceptor />
<retry-interceptor />
<environment-interceptor />
<standard-transaction-interceptor />
</command-service>
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<standard-transaction-interceptor />
</command-service>
</process-engine-context>
<transaction-context>
<!--<object class="com.playence.platform.services.impl.IdentityServiceImpl" /> -->
<hibernate-session current="true" />
</transaction-context>
</jbpm-configuration>
I hope it helps
Dámaris.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604371#604371]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months