[JBoss jBPM] - Re: GPD-78 Adding ConfigInfoElements to Actions and nested C
by jorell
I wanted to create jirra issues for these problems but for some reason every time I try to create a user account I get a message saying something like "You are not authorized to create users".
The minimum process definition for all the issues would be something like this:
<?xml version="1.0"?>
|
| <process-definition name="Movie" version="11">
| <start-state name="Start">
| <transition to="Get MPEG Properties" />
| </start-state>
| <node name="Get MPEG Properties">
| <action class="SomeActionHandler"><send>010901</send>
| <keys>
| <entry>
| <key>VarName</key>
| <value>1122</value>
| </entry>
| </keys>
| <receive>
| <element>030101</element>
| <element>030102</element>
| </receive>
| </action>
| <transition to="End"/> </node>
| <end-state name="End" />
|
Other issues that I've noticed with nested config infor elements are:
1- ConfigInfoElementDomAdapter class needs to defined the getNodeTypes() method and return "configInfoElement" as one of its possible types.
2- ConfigInfoElement.getConfigInfoElements() always throws a class cast exception. The method is trying to cast from an object[] to a ConfigInfoElement[]. Instead we should cast each object in the array individually and copy it to the resultant array.
All of these issues have to do with nested config info elements. Koen I know how development efforts go but is it possible you could give me a ballpark figure of when these issues might be adressed. I am runningon a deadline and it would help me out a great deal in my planning. Btw I tried getting past these issues by extending the model class and the Dom Adapter class for ConfigInfoelement but its being (understandably) instantiated directly in the XmlAdapterFactory.
Thanks,
Imran
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071306#4071306
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071306
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - Maven + Embedded EJB + JPA +EJB 3.0 getting Null name
by r_sudh
Hrere is the code that starts up the embedded JBoss micro-container.
public void beforeIntegrationTests() {
| try {
|
| // Boot the JBoss Microcontainer with EJB3 settings, loads
| // ejb3-interceptors-aop.xml
| EJB3StandaloneBootstrap.boot(null);
|
| // EJB3StandaloneBootstrap.deployXmlResource("jboss-jms-beans.xml");
| // scan classpath for ejbs and MDBs
| EJB3StandaloneBootstrap.scanClasspath();
|
| // Add all EJBs found in the archive that has this file
| deployer = new EJB3StandaloneDeployer();
| deployer.getArchivesByResource().add("META-INF/persistence.xml");
|
| // Deploy everything we got
| deployer.create();
| deployer.start();
|
| // Create InitialContext from jndi.properties
| initialContext = new InitialContext();
|
| } catch (Exception ex) {
| throw new RuntimeException(ex);
| }
| }
I am getting the following stacktrace at
EJB3StandaloneBootstrap.scanClasspath();
anonymous wrote : java.lang.RuntimeException: java.lang.IllegalArgumentException: Null name
| at brazos.permit.ejb.container.EJB3Container.beforeIntegrationTests(EJB3Container.java:52)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
| at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
| at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
| at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| at org.testng.TestRunner.privateRun(TestRunner.java:624)
| at org.testng.TestRunner.run(TestRunner.java:495)
| at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| at org.testng.TestNG.run(TestNG.java:699)
| at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
| at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
| Caused by: java.lang.IllegalArgumentException: Null name
| at org.jboss.dependency.plugins.AbstractController.getContext(AbstractController.java:114)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.getContext(AbstractKernelController.java:94)
| at org.jboss.ejb3.embedded.KernelErrors.validate(KernelErrors.java:96)
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:281)
| at brazos.permit.ejb.container.EJB3Container.beforeIntegrationTests(EJB3Container.java:38)
| ... 22 more
Here is my persistence.xml
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
| version="1.0">
| <persistence-unit name="myPU">
| <jta-data-source>jdbc/MyDB</jta-data-source>
| <properties>
| <property name="toplink.ddl-generation"
| value="create-tables" />
| <property name="toplink.logging.level"
| value="FINER" />
| </properties>
| </persistence-unit>
| </persistence>
I'm using maven and my folder structure is as follows:
srv/main/java
|__________META-INF
|________persistence.xml
src/test/java
|__________EJB2Container.java
Please let me know if there is anything else I can provide to help get this working.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071305#4071305
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071305
18Â years, 8Â months
[JBoss Seam] - Re: Using Jbpm Identity component in Seam
by fzaker
Thank you for your answers. I think I should explain a little more and sorry if I am wasting (or some similar verb) your time.
1. I prefer to use Actor class in my application, because by using it, I will be able to use beans like pooledTaskInstanceList or pooledTask. (or I think so!) They are valuable bean for my TaskManager application.
2. Jbpm Identity component is also valuable, because it covers requirements of Organization Modeling in my application. In addition, the expression style for task assignment (gift of Jbpm Identity), is powerful and valuable too.
So, I need to have both of them side by side. But in the second, roles are contextual (each user has some special roles for the groups he is member of). But in the first, Actor just can have a simple list of String roles which is less flexible.
An example: Suppose we have two kinds of Product shipment: Shoes and Shirts. Suppose we have two separate departments for each one. Orders of Shoes should be handled by Reviewer and Shipper of Shoes department and orders of Shirts should be handled by Reviewer and Shipper of Shirts department.
When using Actor class, I could not distinguish for example Reviewers of different Departments and so Tasks could not be assigned correctly. Defining for example ShoesReviewer and ShirtsReviewer Actor roles, is not a good solution due to several obvious reasons.
I hope my explanation is English enough! Sorry for my weak English.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071304#4071304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071304
18Â years, 8Â months