[JBoss jBPM] - Assigning task to a Group with variable(variable-name) doesn
by dleerob
Hi,
I'm using Jbpm 3.2.6. According to documentation http://docs.jboss.com/jbpm/v3.2/userguide/html/taskmanagement.html#assign..., it says: anonymous wrote : variable(variable-name) means the user or group is taken from the specified variable instance. The variable instance can contain a java.lang.String, in which case that user or group is fetched from the identity component
However, if I use the expression variable(variable-name) to assign a task in my process definition, and my 'variable-name' value is the name of an existing Group, an exception is thrown:
Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't resolve assignment expression 'variable(RoleToObtainQuote)'
| at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:97)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:313)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:267)
| ... 130 more
| Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: user 'IF-Other Maintenance Leader' couldn't be fetched from the user db
| at org.jbpm.identity.assignment.ExpressionAssignmentHandler.getUserByName(ExpressionAssignmentHandler.java:209)
| at org.jbpm.identity.assignment.ExpressionAssignmentHandler.resolveFirstTerm(ExpressionAssignmentHandler.java:138)
| at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:75)
| ... 132 more
It says the USER couldn't be fetched from the DB, but according to docs, shouldn't it also look if its a GROUP? As in my case, it is a Group, and that Group does exist in the DB.
Any ideas?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225825#4225825
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225825
17 years
[JCA/JBoss] - ManagedConnectionFactory lifecycle
by bortx
Hi,
I have created a new post that continues this one
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154012
because I think this subject describes better what I want to discuss, so if administrators want to delete the old post and continue this one I think it would be better.
Basically I want to discuss about how to handle the ManagedConnectionFactory lifecycle
I have developed a solution for this issue that I want to share with you to know your impressions. I have modified jboss-jca sources in my jboss installation to do the following:
I have added an interface ManagedConnectionFactoryLifeCycle as follows:
| public interface ManagedConnectionFactoryLifeCycle {
|
| public void start();
|
| public void stop();
| }
|
I have added the following code in org.jboss.resource.connectionmanager.RARDeployment
| protected void startService() throws Exception
| {
| ...original actions
|
| if (mcf instanceof ManagedConnectionFactoryLifeCycle)
| {
| ManagedConnectionFactoryLifeCycle mcflc = (ManagedConnectionFactoryLifeCycle) mcf;
| mcflc.start();
| }
| }
|
| protected void stopService()
| {
| if (mcf instanceof ManagedConnectionFactoryLifeCycle)
| {
| ManagedConnectionFactoryLifeCycle mcflc = (ManagedConnectionFactoryLifeCycle) mcf;
| mcflc.stop();
| }
| ... original actions
| }
|
Then my ManagedConnectionFactory implements this interface and can handle its deployment and undeployment and perform actions needed. It works, but I know this is not JCA compliant, so I would like to know if you agree with this solution or if you can suggest any other better solution.
Thanks a lot
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225822#4225822
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225822
17 years
[JBoss Tools (users)] - Re: JBoss property files error
by krasig
.project
| <?xml version="1.0" encoding="UTF-8"?>
| <projectDescription>
| <name>Odit</name>
| <comment></comment>
| <projects>
| </projects>
| <buildSpec>
| <buildCommand>
| <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
| <arguments>
| </arguments>
| </buildCommand>
| <buildCommand>
| <name>org.eclipse.wst.common.project.facet.core.builder</name>
| <arguments>
| </arguments>
| </buildCommand>
| <buildCommand>
| <name>org.eclipse.jdt.core.javabuilder</name>
| <arguments>
| </arguments>
| </buildCommand>
| <buildCommand>
| <name>org.eclipse.wst.validation.validationbuilder</name>
| <arguments>
| </arguments>
| </buildCommand>
| <buildCommand>
| <name>org.jboss.tools.common.verification.verifybuilder</name>
| <arguments>
| </arguments>
| </buildCommand>
| <buildCommand>
| <name>org.hibernate.eclipse.console.hibernateBuilder</name>
| <arguments>
| </arguments>
| </buildCommand>
| <buildCommand>
| <name>org.jboss.ide.eclipse.archives.core.archivesBuilder</name>
| <arguments>
| </arguments>
| </buildCommand>
| </buildSpec>
| <natures>
| <nature>org.jboss.ide.eclipse.archives.core.archivesNature</nature>
| <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
| <nature>org.eclipse.jdt.core.javanature</nature>
| <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
| <nature>org.jboss.tools.jsf.jsfnature</nature>
| <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
| <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
| <nature>org.hibernate.eclipse.console.hibernateNature</nature>
| </natures>
| <linkedResources>
| <link>
| <name>src</name>
| <type>2</type>
| <location>D:/EclipseGanymede6/eclipse/MyWorks/System/src</location>
| </link>
| <link>
| <name>src-1</name>
| <type>2</type>
| <location>D:/EclipseGanymede6/eclipse/MyWorks/System/src</location>
| </link>
| <link>
| <name>src-2</name>
| <type>2</type>
| <location>D:/GanymedeSR16/eclipse/MyWorks/Delo/JavaSource</location>
| </link>
| <link>
| <name>srcDelo</name>
| <type>2</type>
| <location>D:/GanymedeSR2/eclipse/MyWorks/Delo/JavaSource</location>
| </link>
| <link>
| <name>srcSystem</name>
| <type>2</type>
| <location>D:/GanymedeSR2/eclipse/MyWorks/System/src</location>
| </link>
| </linkedResources>
| </projectDescription>
|
.classpath
| <?xml version="1.0" encoding="UTF-8"?>
| <classpath>
| <classpathentry kind="src" path="JavaSource"/>
| <classpathentry excluding="*/.svn/|.svn|.svn/|com/indexbg/.svn/|com/indexbg/system/*/.svn/|com/indexbg/system/.svn/|test/.svn/|test/com/.svn/|test/com/indexbg/.svn/|test/com/indexbg/system/*/.svn/|test/com/indexbg/system/.svn/" kind="src" path="srcSystem"/>
| <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
| <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
| <classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
| <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 5.0 Runtime"/>
| <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
| </classpath>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225798#4225798
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225798
17 years