[jBPM] - A few jbpm5 architectural/design questions
by Kishore Jaladi
Kishore Jaladi [https://community.jboss.org/people/kishorejaladi] created the discussion
"A few jbpm5 architectural/design questions"
To view the discussion, visit: https://community.jboss.org/message/732732#732732
--------------------------------------------------------------
I am evaluating using JBPM5 for our work flows in e-commerce context. I did some reading online. Still got a few questions. Please help
* We use MongoDB as our database. I understand that JBPM5 supports JPA persistence. Is it safe to assume that with any ORM provider like Dataneucleaus that provides a JPA layer for MongoDB can used for Work Flow Engine persistence? ref: http://sasajovancic.blogspot.com/2011/06/use-jpa-with-mongodb-and-datanuc... http://sasajovancic.blogspot.com/2011/06/use-jpa-with-mongodb-and-datanuc...
* Is it possible to do on-demand process-instance or ksession persistence? If so, is there any sample code?
* I read that the work flow engine uses the single thread (the thread that starts the process/fires an event) to execute the entire process...no real multi-threading. What happens when the process instance and/or session is persisted at safe-points (or manually)?..does the thread end/return back to main program?
* If I have to start multiple (many) processes at the same time from the main program, do I have to start them all in different threads? do I have to model my own thread pool?
* I have a situation where, the main program receives a message on http and the http response thread have to be returned with status 200 OK after persisting the message. If I want the message persistence as a part of the process, how can I achieve this? I mean, I cannot return the main thread just after the first (persistence) node of the process, right?...how can make the rest of the process continue?
Thanks in advance
-Kishore
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732732#732732]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[jBPM] - Open of saved BPMN2 file fails in Eclipse
by Jim Morris
Jim Morris [https://community.jboss.org/people/jimmorris] created the discussion
"Open of saved BPMN2 file fails in Eclipse"
To view the discussion, visit: https://community.jboss.org/message/733464#733464
--------------------------------------------------------------
Hi, I'm trying to evalute using jBPM as an embedded component for our application.
Using the 5.2 demo download I created a process in Eclipse that was originally in web designer. Web designer was way too slow for real work. Twice now I can't re-open the file after shutting down and restarting Eclipse (via Ant start.demo)
I validated before saving, although that shouldn't be required. First I get a message like "unknown gateway direction". I manually edit the XML and add gatewayDirection="Diverging" to the <bpmn2:exclusiveGateway> tag missing the direction then I get error: "Could not open the editor: Unknown model object null"
Details:
java.lang.IllegalArgumentException: Unknown model object null
at org.drools.eclipse.flow.ruleflow.editor.editpart.RuleFlowEditPartFactory.createEditPart(RuleFlowEditPartFactory.java:94)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:626)
at org.drools.eclipse.flow.common.editor.GenericModelEditor.initializeGraphicalViewer(GenericModelEditor.java:175)
at org.eclipse.gef.ui.parts.GraphicalEditor.createGraphicalViewer(GraphicalEditor.java:158)
at org.eclipse.gef.ui.parts.GraphicalEditorWithPalette.createPartControl(GraphicalEditorWithPalette.java:63)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
...
Any fix for this type of error.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/733464#733464]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[JBoss Tools] - Runtime Environment 7.1 Default Config 3.3M5
by Mark Rosenthal
Mark Rosenthal [https://community.jboss.org/people/mwr0707] created the discussion
"Runtime Environment 7.1 Default Config 3.3M5"
To view the discussion, visit: https://community.jboss.org/message/647007#647007
--------------------------------------------------------------
On 3.3M5, I've created a 7.1 runtime env and set the JRE to a Java 1.6 installation.
When creating a new Dynamic Web Project, the project configuration "Default JBoss 7.1 runtime configuration" insists on configuring a non-existent (in my case) 1.7 JRE by default.
The symptoms are deployable class files built at 1.7 which fail at deployment when a 1.7 JRE is not present.
This can be worked around by modifying the default configuration during project creation. After project creation, this can be worked around by changing the project Java Facet and Compiler Compliance Level.
The desired behavior is for the "Default JBoss 7.1 runtime configuration" during project creation to utilize the setting in the configured JBoss 7.1 Server runtime by default.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647007#647007]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[Beginner's Corner] - jboss ldapextloginmodule
by rasha k
rasha k [https://community.jboss.org/people/rasha123] created the discussion
"jboss ldapextloginmodule"
To view the discussion, visit: https://community.jboss.org/message/733378#733378
--------------------------------------------------------------
hi ,
im not sure if this is the right place to ask, if not plz direct me,
im trying to authinticate jboss with active directory and i did this login file
application-policy name="OpenKM">
<authentication>
<login-module flag="required" code="org.jboss.security.auth.spi.LdapExtLoginModule">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldap://10.100.xx.xx:389/</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="bindDN">xxx\Admin</module-option>
<module-option name="bindCredential">password</module-option>
<module-option name="baseCtxDN">ou=user,dc=xxx,dc=local</module-option>
<module-option name="baseFilter">(sAMAccountName={0})</module-option>
<module-option name="rolesCtxDN">ou=user,dc=xxx,dc=local</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
<module-option name="roleNameAttributeID">name</module-option>
<module-option name="java.naming.referral">follow</module-option>
</login-module>
</authentication>
</application-policy>
and this is my configuration file
system.login.lowercase=on
principal.adapter=com.openkm.principal.LdapPrincipalAdapter
principal.ldap.server=ldap://10.100.200.91:389/
principal.ldap.security.principal=CN=Admin,ou=user,dc=xx,dc=local
principal.ldap.security.credentials=password
principal.ldap.user.search.base=ou=user,dc=xxx,dc=local
principal.ldap.user.search.filter=(objectclass=person)
principal.ldap.user.attribute=sAMAccountName
principal.ldap.role.search.base=ou=xxx,dc=xxx,dc=local
principal.ldap.role.search.filter=(jectcoblass=group)
principal.ldap.role.attribute=cn
principal.ldap.mail.search.base=cn={0},ou=xxx,dc=xxx,dc=local
principal.ldap.mail.search.filter=(&(objectclass=person)(sAMAccountName={0}))
principal.ldap.mail.attribute=mail
principal.ldap.users.by.role.search.base=ou=xxxx,dc=xxx,dc=local
principal.ldap.users.by.role.search.filter=(objectclass=group)
principal.ldap.users.by.role.attribute=member
principal.ldap.roles.by.user.search.base=ou=xxxx,dc=xxx,dc=local
principal.ldap.roles.by.user.search.filter=(&(objectclass=person)(sAMAccountName={0}))
principal.ldap.roles.by.user.attribute=memberOf
i can succesfully login with active directory user but the ploblem that all users and roles are not imported to openkm!!
my active directory dn is
"cn= user1, CN=group1,OU=xxx,DC=xxxx,DC=local"
"cn= user2,CN=group2,OU=xxx,DC=xxxx,DC=local"
"cn= user3,CN=group3,OU=xxx,DC=xxxx,DC=local"
where users and roles (groups) under OU
i m not sure if my mistake is in the configuring of roles ands users ?!
any help :(
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/733378#733378]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months