Why you want to set the actor id to null when user closes the browser or
session timeout?
I don't think session timeout is same as cancelling a task. Just imagine a
scenario where you are working on a task and you are out for say 5 minutes and
when you come back, the task is not there in your
Look at the following code and you should be able to understand what is going
on:
LoggingInstance loggingInstance = processInstance.getLoggingInstance();
| List assignmentLogs = loggingInstance.getLogs(TaskAssignLog.class);
|
| log.debug("assignmentlogs: " + assignmentLogs);
|
You can add the user etc eigher by using the SQL or by using the hibernate
session (You should be able to get the session from the jbpm context or
configuration).
Use .save(user) if you are using hibernate session. make
sure you populate the user object before saving. Also please make sure you
Add an action handler on the fork node and do whatever you want to do in the
handler.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961863#3961863
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961863
___
I guess that is possible using the variables. When you configure your task (by
adding actions, swimlane etc in JPD), you can specify the variables using the
"Controller" menu. These variables can be retrived using the API:
taskInstance.getTask().getTaskController().getVariableAccesses()
Thanks.
If you are not sure that the definition is persisted to the database, try
loading it using graph session:
ProcessDefinition processDefinition =
graphSession.loadProcessDefinition(processDefinitionId);
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960741#396
How are you deploying the definition? Are you retreiving the process definition
from the".par" file?
Here is what you can do:
ZipInputStream zipStream = new ZipInputStream(new FileInputStream(new
File()));
| ProcessDefinition processDefinition =
ProcessDefinition.parseParZipInputStream(zipSt
Ronald,
Thanks for the compliments :-).
I will create a new user id.
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960538#3960538
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960538
In the default web app (jbpm default webapp which uses JSF) the redirection is
done using the faces-config.xml.
Where are you doing your redirection? If everything is fine in the servlet,
where do you tell the system that redirect to next page?
Thanks.
View the original post :
http://www.jb
What are the parameters you are getting in the request?
Is it going into the "if" block?
Did you try debugging?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960391#3960391
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=repl
The LazyInitializationException normally appears when your hibernate session is
closed and you are trying to use a property or calling a getter on that
detached object.
Try initializing the object using Hibernate.initialize method or close the
session (some how) after rendering the JSP.
Here
Paste your code or copy any exception you are getting.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960368#3960368
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960368
__
Hi,
1 First of all, make sure you have jbpm schema created in your database (all
jbpm tables).
2. Check the jbpm_id_user table to see if there are user exists.
3. Try to access the web app through the browser. Are you getting the login
page with populated user dropdown? or page itself is not
I guess the difference between jbpm-gpd-feature and jbpm-gpd site is that if
you install site, it will take care of updating if there is any new version of
gpd out there.
What is the relation between gpd 3.0.11 and jbpm 3.1.2? As long as the par file
is correct, jbpm 3.1.2 should work fine.
I
If you changed the webapp, you still using JSF?
If you are using your own servlet then why not prepare the form parameters list
on your own and set it to the request or session (whatever feasiable)
Preparing form parameter list is straight forward:
List taskFormParameters = new ArrayL
Did you modify web.xml of the webapp?
Make sure you have following lines in the web.xml:
org.apache.myfaces.webapp.StartupServletContextListener
FacesServlet
javax.faces.webapp.FacesServlet
1
FacesServlet
/faces/*
Another question is: In the beginnin
I used to get that message. Make sure that you have users in the jbpm_id_user
table. Look at the console to see if hibernate is able to connect to your
database etc.
If users are not there then use following insert sqls for inserting into
jbpm_id_user table (hopefully you didn't change jbpm tab
This is hapenning in jbpm 3.1.1 and the same code is in 3.1.2 also
Here is the flow:
ProcessInstance.resume() -> rootToken.resume() -> Token.resume() ->
resumeTaskInstances() -> TaskMgmtInstance.resume() -> TaskInstance.resume()
and this is the final method which sets these two flags:
isSu
Which JPD version you are using? I am using 3.0.9.x and you can specify
the server port and server name during the deployment.
If you are using old version, you can save the .par file locally and
deploy it programatically if you want (using
jbpmContext.deployProcessDefinition method).
Thanks.
Unfortunately we are not deploying through the Eclipse plugin. You can use the
code from the upload servlet to deploy your process programatically.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958975#3958975
Reply to the post :
http://www.jboss.com/index
Where is "context" defined? I hope it is not another JBPMContext type
variable defined as null.
String userName = req.getParameter("userName");
JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
jbpmContext.setActorId(userName);
context.getRequestDispatcher("/mainPage.js
Hi,
May be userName from request is coming null?
Check the html source of login page to see if that is the name of the
dropdown (user list drop down) or look at the browser address bar to see
if that is parameter passed to server.
Hope that helps.
Thanks.
View the original post :
http://www.j
Check the console to see if hibernate is pointing to right database or not.
Hibernate will display the schema it points to and it will also tell the
database version on the console.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958528#3958528
Rep
Hi,
Most of your jar files are coming from folder
"C:\Documents and Settings\..."
May be because of spacing in the directory structure, it is not able to find
the jar file?
It may sound stupid but try putting all the jars in the directory without space
Thanks.
View the original post :
http://
Use fork and join. The system will move on from join only if all the children
of fork completed successfully.
The join will make sure that it received all the child tokens.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958227#3958227
Reply to the
Check your hibernate config file. May be you are pointing to a
different schema or may be the table you created in your schema
might have a typo in the name (just a thought).
Did you manually created the schema or used hbm2ddl tool (hibernate
tool for generating schema from mapping) ?
Thanks.
Hi,
It clearly says that you are missing commons logging jar file in your
classpath.Check your build path and try it again after adding required jar.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957901#3957901
Reply to the post :
http://www.jboss
Ronald,
The method "getCurrentJbpmContext" is deprecated in which release?
We are using 3.1.1 and I don't see that one as deprecated.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957550#3957550
Reply to the post :
http://www.jboss.com/index.htm
Antitrust1982,
You can get the current context using:
JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
Once you have jbpm context, you can load the task instance by using task
management definition like:
jbpmContext.getTaskMgmtSession().loadTaskInstance(TaskInstanceId()))
Thank
29 matches
Mail list logo