[JBoss jBPM] - Re: JBPM Identity
by kukeltje
Ok, here is another quick reply ;-)
Well, you are kind of there, but not completely. I have to admit, the area of extending/overriding the identitycomponent and/or the ExpressionAssignmentHandler is/was kind of not really flexible and certainly not realy documented well.
I think the best/easiest way is to not use the identity component and explicitly put AssignmentHandlers on tasks/swimlanes and not use expressions explicitly, at least not the jpdl expressions. You could pass a string param to your custom assignmenthandler which is in fact the expression you want to use and evaluate that in your assignmenthandler. The downside to this is that you have to explicitly put the assignmenthandler everywhere you want it. This is already reduced when using swimlanes btw.
hth a little
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233549#4233549
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233549
16 years, 11 months
[Security & JAAS/JBoss] - Re: @RunAs in JBoss 5 - Caller unauthorized in second call
by komet_1978
This is the corresponding stack trace:
ERROR [STDERR] javax.ejb.EJBAccessException: Caller unauthorized
| ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:199)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
| ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
| ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
| ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| ERROR [STDERR] at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233531#4233531
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233531
16 years, 11 months
[JBoss jBPM] - Re: JBPM Identity
by Sherrys
Thank you for your fast reply Ronald,
By blah, I mean any kind of expression in my process definition:
<?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="test2">
|
| <start-state name="start-state1">
| <transition to="task-node1"></transition>
| </start-state>
|
| <task-node name="task-node1">
| <task name="test2task">
| <assignment expression="blah"></assignment>
| </task>
| <transition to="end-state1"></transition>
| </task-node>
|
| <end-state name="end-state1"></end-state>
|
| </process-definition>
By seeing the "expression" in the definition, jBPM should call the identity component (am I right?) I've removed the identity mappings from my hibernate.cfg, and implemented AssignmentHandler myself (I also extended the ExpressionAssignmentHandler but it didn't help either). As a result, I expect jBPM to call my assignmentHandler instead of identity's.
In my assignment handler, I set the assignable's actorId to 12 (which is defined in the User table of the DB, although I know that this table is used by the Identity component)
It seems that while creating a new instance of task, jBPM should call my assignment handler and not to use the identity component. so, it should returns a user with id 12, but it throws an identity exception
thnx
--Sherry
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233529#4233529
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233529
16 years, 11 months
[JBoss Tools (users)] - Re: issue of install jbosstools
by lili001
firstly ,thank you for reply.i am using java 6 on windows.i checked installed software ,and found seam tools existing there.
following is log.
!ENTRY org.eclipse.equinox.p2.metadata.generator 2 0 2009-05-26 19:06:04.218
!MESSAGE An error occurred while loading the bundle manifest D:\eclipse\plugins\org.eclipse.jpt.core_2.0.102.v200901160200.jar
!STACK 0
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at org.eclipse.equinox.internal.provisional.p2.metadata.generator.BundleDescriptionFactory.loadManifest(BundleDescriptionFactory.java:124)
at org.eclipse.equinox.internal.provisional.p2.metadata.generator.BundleDescriptionFactory.getBundleDescription(BundleDescriptionFactory.java:96)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.processBundle(RepositoryListener.java:236)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.process(RepositoryListener.java:226)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.RepositoryListener.added(RepositoryListener.java:201)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.processFile(DirectoryWatcher.java:200)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.scanDirectories(DirectoryWatcher.java:161)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:108)
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionLocationArtifactRepository.ensureInitialized(ExtensionLocationArtifactRepository.java:70)
at org.eclipse.equinox.internal.p2.extensionlocation.ExtensionLocationArtifactRepository.getProperties(ExtensionLocationArtifactRepository.java:190)
at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.addRepository(ArtifactRepositoryManager.java:106)
at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.addRepository(ArtifactRepositoryManager.java:90)
at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.createExtensionLocationArtifactRepository(Activator.java:102)
at org.eclipse.equinox.internal.p2.reconciler.dropins.PlatformXmlListener.synchronizeConfiguration(PlatformXmlListener.java:236)
at org.eclipse.equinox.internal.p2.reconciler.dropins.PlatformXmlListener.stopPoll(PlatformXmlListener.java:133)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.stopPoll(DirectoryWatcher.java:172)
at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:109)
at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchConfiguration(Activator.java:449)
at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:159)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233523#4233523
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233523
16 years, 11 months