[JBoss jBPM] - Getting comments through command object ?
by lblaauw
Hey all,
Does anybody have any experience in getting the comment entries through the use of a getTaskInstance command or getprocessInstanceCommand ? I am using these through the command EJB and this will throw a lazy init exception since the collection of Comments is lazy getting it wont work through the EJB interface since obviously the connection through hibernate and the DB is allready gone when you receive the taskinstance of processinstance...
We could ofcourse modify the sources so this collection is not lazy, but i would rather have the option, like with variables, to set a switch on the command object to retrieve the comments or not and then have the command EJB deal with it.
Any solutions greatly appreciated...
Thanks and greetings,
Leo de Blaauw
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168995#4168995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168995
16 years, 4 months
[JBoss jBPM] - Re: upload file in a task ?
by vtysh
You shouldn't put action command to the tf:saveButton directly because all jbpm form actions described directly in the j4j:taskForm tag in the JBPM console application.
To upload files in the task variable map you should to have own tag and use it inside standard action components commandButton or commandLink in your task form. For example:
| <gd:inputFile target="#{stream}"/>
| <h:commandLink value="upload">
| <customnamespace:addFile dataStream="#{stream}" target="#{var['file']}"/>
| </h:commandLink>
|
To avoid variable map reload you should to specify some context variable value during upload action and check it on variable map loading action. If variable is set then do not reaload variable map.
Replace the line in the task.xhtml
| <j4j:getVariableMap target="#{taskVariableMap}" value="#{task}"/>
|
with the next
| <j4j:getVariableMap target="#{taskVariableMap}" value="#{task}" unless="#{yourCustomVariableWhichIndicatesFileUpload}"/>
|
And of course do not forget to change form enctype to multipart.
Hope it will help to everybody searching the JBPM console file uploading solution for task
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168990#4168990
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168990
16 years, 4 months
[JBoss jBPM] - Re: Deploy a web application without using jbpm-console
by kukeltje
anonymous wrote : My probleme is that i want to integrate the workflow(vacation request)in a web application(where the jsf pages are already there). This is a normal usecase for jBPM, so should not be a problem
anonymous wrote : ,is it necessary to run the server(jbpm-jpdl-3.2.3\server\start.bat) before any deployment,can we deploy process in other servers like Apache-tomcat(i've tried,but in vain). No, Yes, see the wiki
anonymous wrote : Please,guide me so i can integrate the workflow into my web application,i'm in a training and i'm blocked. Do it just like you would integrate other frameworks in your webapplications. Use the api. Examples are the webconsole itself (jbpm4jsf) or a struts example in the wiki
anonymous wrote : Can you tell me the advantage of integrating worflow besides it gives an agility in the maintenance.
| Thanks in advance.Don't reinvent the wheel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168946#4168946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168946
16 years, 4 months