[jboss-user] [jBPM Users] - Re: async fork

2009-12-09 Thread nizzy
Fixed by updating to 3.3.1.GA and adding lock="pessimistic" to join. Thanks for your help! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269822#4269822 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269822 ___

[jboss-user] [jBPM Users] - Re: async fork

2009-12-08 Thread nizzy
Also, I have a unit-test which test the process outside the container, without the persistence, it seems to work fine. I'm getting a couple of failure points according to the stacktraces, 1 in action handler in the main process (leave node method) - before entering fork. 1 in action handler i

[jboss-user] [jBPM Users] - Re: async fork

2009-12-08 Thread nizzy
Bump Has there been any further work on this, I too am seeing the SOE Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#740] | at org.hibernate.persister.entity.Abstrac

[jboss-user] [jBPM Users] - Re: Variable missing in assignment handler

2009-12-03 Thread nizzy
Hi All, I think the problem was that I had to mark the variables to be written back to the super-process as; View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268844#4268844 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [jBPM Users] - Re: Variable missing in assignment handler

2009-12-03 Thread nizzy
Hi, I have successfully copied the super-process variables into the sub-process using the "variable" element in the process definition. Chapter 18 Table 18.8 of the User Guide states "variable - specifies how data should be copied from the super process to the sub process at the start and from

[jboss-user] [jBPM Users] - Re: Variable missing in assignment handler

2009-12-03 Thread nizzy
Yes all we pass is ids for the domain model objects, however to have to pre-define those in a process definition is restrictive and complicates code updates. However obviously I will have to live with it, I'm surpirsed not many people have requested a change. Thanks for the response! View the

[jboss-user] [jBPM Users] - Re: Variable missing in assignment handler

2009-12-02 Thread nizzy
"Implicit is possible by extending and overriding the subprocess node implementation." -- Why are super-process variables not by default copied into the sub-process? Am I missing something or is this not the behaviour what most people require, should it not be included as part of Jboss JBPM cor

[jboss-user] [JBoss AOP Users] - Re: aop.xml to pass parameters to interceptor

2009-11-19 Thread nizzy
Was just reading the reference manual and the schema, realised should prbably be done that way. Should have done that first!! Thanks for the reply. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266555#4266555 Reply to the post : http://www.jboss.org/index

[jboss-user] [JBoss AOP Users] - aop.xml to pass parameters to interceptor

2009-11-19 Thread nizzy
Hi All, I'm experiencing behaviour that seems bizarre to me, hoefully someone can explain it to me. aop.xml | | | | | | MockEmailer | | | | | | mock-jpa-helper |

[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing

2009-04-16 Thread nizzy
Hi Flavia, Can I just confirm a few things about my setup; 1. I would have thought the following pointcut would have worked | | | | | Just to explain what I have done ExampleManagerBean - session bean under test ExampleManagerBeanTest - junit test So pointcut is sa

[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing

2009-04-16 Thread nizzy
Hi Flavia, I cannot seem to get the verbose mode to work! I have tried; 1. adding the -Djboss.aop.verbose=true setting to the VM Arguments of my JUnit test class's run configuration (eclipse) 2. Set the jboss.aop.verbose=true as a System property setting via System.setProperty("jboss.aop.verbo

[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing

2009-04-14 Thread nizzy
Environment -- JBoss AS 4.2.3 AOP 2.0.1 Using the -javaagent: setting on my VM arguments (eclipse IDE) Does that make it loadtime weaving? I'm running this outside the container by dropping my jboss-aop.xml file into a META-INF directory. Everything else I have tried seems to work

[jboss-user] [JBoss AOP] - Re: Different jboss-aop.xml files for unit testing

2009-04-14 Thread nizzy
Hi Flavia, Thanks for the response. I have tried your suggestion however when the pointcut is of type "execution" then it is intercepted and the defined aspect is executed. | | | | | However when I change it to | | | | | The class defi

[jboss-user] [JBoss AOP] - Different jboss-aop.xml files for unit testing

2009-03-13 Thread nizzy
Hi All, As mentioned in my previous post I'm reviewing AOP for use with unit testing. I define my jboss-aop.xml in test/META-INF folder in my eclipse project. I have noticed that it is going to be quite probable that poincut definitions are going to cause undesired side-effects. For instance -

[jboss-user] [JBoss AOP] - Re: Using AOP to mock out dependecies for unit-test

2009-03-09 Thread nizzy
Hi Stale, Can I also point out that this behaviour is fundamental to being able to use AOP for unit-testing, certainly in our company, where we always have the "real" object and the "mock" object implementing the same interface. I will either use you're suggested workaround for now, or make the

[jboss-user] [JBoss AOP] - Re: Using AOP to mock out dependecies for unit-test

2009-03-09 Thread nizzy
Look forward to hearing from you. Thanks for the help! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216101#4216101 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216101 ___

[jboss-user] [JBoss AOP] - Re: Using AOP to mock out dependecies for unit-test

2009-03-06 Thread nizzy
I see the same behaviour when I edit the typedef example bundled with jboss-aop-2.0.1.GA. Tells me I've probably made the syntactic mistake in both :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215670#4215670 Reply to the post : http://www.jboss.org/ind

[jboss-user] [JBoss AOP] - Re: Using AOP to mock out dependecies for unit-test

2009-03-06 Thread nizzy
Hi Stale, Couldn't get it any smaller, :) Cut down Session Bean public class AOPUnitTestManagerBean { | | private IPersistenceHelper helper; | | public AOPUnitTestManagerBean() { | helper = new PersistenceHelper(null); | } | | public void cr

[jboss-user] [JBoss AOP] - Re: Using AOP to mock out dependecies for unit-test

2009-03-06 Thread nizzy
Hi Stale, Thanks for the response, I tried grouping the typedef with commas however I received a parser error. I had hoped this would be possible, all the documentation points toward this being possible. My project is rather large, is it possible to zip up the eclipse project and attach it to

[jboss-user] [JBoss AOP] - Using AOP to mock out dependecies for unit-test

2009-03-05 Thread nizzy
Hi Guys, AOP newbie; I hope someone can help me I'm developing a quick AOP proof of concept with the intention to roll it out company wide. The idea is to use AOP to mock-out dependencies in order to simplify unit testing. I'm sure I don't have to state the benefits here. However I have creat

[jboss-user] [JBoss AOP] - Re: AOP Logging Tutorial

2009-02-17 Thread nizzy
I'm also interested in using it for unit testing! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210776#4210776 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210776 ___ jboss

[jboss-user] [JBoss AOP] - AOP Logging Tutorial

2009-02-17 Thread nizzy
Hi All, I'm investigating using AOP for integrating a Logging Module (ear file) into an existing J2EE application, can anyone point me to a tutorial for logging, since this is one of the classic uses for AOP!! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [EJB 3.0] - Re: Multiple Remote Interfaces

2009-02-11 Thread nizzy
Anybody? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4208998#4208998 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4208998 ___ jboss-user mailing list jboss-user@lists.jboss

[jboss-user] [EJB 3.0] - Multiple Remote Interfaces

2009-02-05 Thread nizzy
Hi All, I'm developing an Application where it would be useful to have multiple remote interfaces for the same session bean we are using JBoss AS 4.2.2, JPA-Hibernate, Oracle Is it possible using this combination, must be JPA annotations, to define multiple remote interfaces. I know that I ca

[jboss-user] [JBoss jBPM] - Re: Transient variables between process and subprocess

2008-09-03 Thread nizzy
Hi Guys, I know this was a long time ago, but I'm trying to access a super-process transient variables via a sub-process. In an ActionHandler I extract the transient variable map. When in the super-process the map contains the expected variables, however the sub-process map is null. Is there

[jboss-user] [JBoss jBPM] - Re: JobExecutorServlet alternative

2008-08-20 Thread nizzy
Hi Alex, Because I do not wish to deploy enterprise ear and it was easier to write MBean to accomplish the task than search for examples or documentation on how to do it any other way! It only took 15 mins to write MBean. View the original post : http://www.jboss.com/index.html?module=bb&op=v

[jboss-user] [JBoss jBPM] - Re: JobExecutorServlet alternative

2008-08-15 Thread nizzy
Hi, I have successfully started the JobExecutor using a MBean. Is there any issues with this? In you guys expert opinion, ;), is this a reasonable way to do this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170719#4170719 Reply to the post : http://ww

[jboss-user] [JBoss jBPM] - Re: JobExecutorServlet alternative

2008-08-15 Thread nizzy
Hi, Thanks for the reply! Can you tell me which docs you are referrring to? Naturally that was the first place I looked prior to posting. However I can find nothing in the user guide. Section 13 being the only real mention of Schedulers. View the original post : http://www.jboss.com/index

[jboss-user] [JBoss jBPM] - JobExecutorServlet alternative

2008-08-14 Thread nizzy
Hi, I'm using JBPM 3.2.2 with JBoss 4.2.2 AS. I need to use timers in my process definitions and so I have initialised the JobExecutorServlet and all this works fine. However what do I do if I want to split the app server and web server? I have seen using JMS Queues may be an alternative to th

[jboss-user] [JBoss jBPM] - Re: Deployment using PAR File

2008-07-16 Thread nizzy
An update, Could it be to do with the location of the par file within the AS? Previously I neede the processdefinition.xml file on the classpath, i.e. in the conf dir of the AS, and I needed the gpd.xml and the image in the working directory, i.e. the bin dir. Is it possible to do this sort of

[jboss-user] [JBoss jBPM] - Deployment using PAR File

2008-07-16 Thread nizzy
Hi, I'm trying to programmatically deploy a par file using JBPM 3.2.2 and JBoss 4.2.2. I have written the following code | public void deployParFile(String fileName) throws Exception { | if (log.isDebugEnabled()) { | log.debug("inside deployParFile(fileName)"); |

[jboss-user] [JBoss jBPM] - Re: Deployment archive advice

2008-06-26 Thread nizzy
Is there any way you know of to deply the process definitions as part of the j2ee deployment process? I know you said that there is currently nothing similar to a war deployer. Is it possible to have deployer code that is automatically run as part of the j2ee deployment (prob JBOSS AS question)

[jboss-user] [JBoss jBPM] - Re: Workflow process visual rapresentation

2008-06-19 Thread nizzy
Excellent post dleerob, followed you're instructions and got this working relatively easily. However now I need to be able to click on a node within the diagram and display node information, and other application specific information such as the messages sent / recevied as a result of the actio

[jboss-user] [JBoss jBPM] - Re: Implementing Custom JBPM Console

2008-06-10 Thread nizzy
Thanks, Think we will write our own web app. I'm not familiar with the technologies used to write the JBPM-Console. I'm looking at the console source to try and determine the JBPM calls made to populate the pages. In the processes.xhtml I see that the list of processes is populated from the va

[jboss-user] [JBoss jBPM] - Implementing Custom JBPM Console

2008-06-09 Thread nizzy
Hi All, We need to extend the functionality of the JBPM Console. Our other UI's are written using JSPs and utilizing struts2 framework; 1. How easy sould it to be to extend the funtionality of the console so that it would "fit in" with our current architecture? (Suspect answer is: forget it!)

[jboss-user] [JBoss jBPM] - Re: Using end-complete-process attribute of end-state

2008-06-09 Thread nizzy
Hi Ronald, After calling "signalling waiting for b" the root token node is Fork(fork1). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156597#4156597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156597 __

[jboss-user] [JBoss jBPM] - Re: Using end-complete-process attribute of end-state

2008-06-09 Thread nizzy
Hi Ronald, After "waiting for b" the process has indeed ended! However it is not in the end state I would have thought it should be in, and it is also possible to signal a process instance which has ended. 1. Should the process instance not be in end-state(end - doThis3 failed)? 2. Should an ex

[jboss-user] [JBoss jBPM] - Re: Using end-complete-process attribute of end-state

2008-06-06 Thread nizzy
Forgot ActionHandler package com.ecebs.sample.action; | | import org.apache.log4j.Logger; | import org.jbpm.context.exe.ContextInstance; | import org.jbpm.graph.def.ActionHandler; | import org.jbpm.graph.exe.ExecutionContext; | | /** | * TODO description | * | * @author A

[jboss-user] [JBoss jBPM] - Re: Using end-complete-process attribute of end-state

2008-06-06 Thread nizzy
Hi, Finally got back to this issue. I'm using the end-complete-process="true" attribute of end-state. My process definition has a fork, the fork has two paths of execution. At the end of each path, processing can either be successfull or fail. When execution fails I would expect to enter the r

[jboss-user] [JBoss jBPM] - Re: DelegationException - some sort of configuration issue

2008-06-04 Thread nizzy
Hi, Just to let anyone who has similar issue know my original jbpm.cfg.xml had the line | commented out So when the new jbpm.cfg.xml was added the uncommented line caused all the issues I was seeing! Thanks for the help! I appreciate it was a bit obscure! View the original post : http:

[jboss-user] [JBoss jBPM] - Re: DelegationException - some sort of configuration issue

2008-06-04 Thread nizzy
I have removed all of the actions from my rpocess definition and it progresses further, now giving the exception org.hibernate.SessionException: Session is closed! | at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49) | at org.hibernate.impl.Session

[jboss-user] [JBoss jBPM] - Re: DelegationException - some sort of configuration issue

2008-06-04 Thread nizzy
Updated stacktrace | javax.ejb.EJBException: org.jbpm.graph.def.DelegationException: attempt to create create event with null entity | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)

[jboss-user] [JBoss jBPM] - DelegationException - some sort of configuration issue

2008-06-04 Thread nizzy
Hi, I'm completely stumped. I had a working configuration and I think the jbpm.cfg.xml file has been overwritten by someone. Now I can't get JBPM working again. I'm using JBPM3.2.2 in JBOSS4.2.2. I had a Client which did a remote lookup of a SessionBean, this bean contained methods such as de

[jboss-user] [JBoss jBPM] - Re: Using end-complete-process attribute of end-state

2008-06-03 Thread nizzy
Thanks Ronald, Having a look at executing sub processes at the moment as soon as I get back onto it I will do as you suggest. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155418#4155418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [JBoss jBPM] - Re: Using end-complete-process attribute of end-state

2008-06-03 Thread nizzy
Hi Interestingly in my debug, I see that node-entered is the required end state however execution of the process does not finish at this point! | | 10:47:20,613 [main] INFO ForkTest : Signaling: Waiting for a | 10:47:20,613 [main] DEBUG ForkTest : inside signal(instance, childKey = a)

[jboss-user] [JBoss jBPM] - Using end-complete-process attribute of end-state

2008-06-03 Thread nizzy
Hi, I have attached the update schema to the jira issue created by Tom. This fixed the exception I was seeing. However I'm still not seeing the behaviour from the process execution that I would expect. Could someone have a look at my test process definition and see if I'm doing something wrong