[jBPM Users] - Re: JBPM Java Task return value
by kukeltje
Thanks for getting back and glad that it works.
If you do not mind I like to give you some additional tips.
First of all it is no problem being new to something and asking questions, not at all. We welcome all new users :-) But there are reasons behind my comments on how and where to post. It keeps the forums clean and topics well... on topic and thus easier for others to find if they use search functionality.
Secondly, us asking for a fully integrated unittest instead of just some code and a processdefinition also has a reason. It is the most explicit way of stating what you do and expect and we can fairly easily run it on our side and see/debug what happens if it really is a bug in jBPM.
Thirdly, regarding posting something, many forums (including this one) have options for putting in code/xml. In this forum use the [c o d e] tag (without spaces, also see the preview button) The # instead of < is not needed then.
Regarding debugging, that is also something you can do yourself and seeing the processinstance is null is something can see then yourself.
And last but not least, if you solve something, it is good practise to not also report back that you solved it, but e.g. also confirm that we were right, or that it was another issue and than also state what that other issue is. Others can learn from that.
What I still do not get (talking about confusion ;-)) is what you mean by
anonymous wrote : I do understand my execution is ending. But not able to find it ...
And that you say it works with a java task, but what you post *has* a java task...
And for everybody: If there are no wait states in your processdefinition, it is ended when the startProcessInstanceXXX returns. When it ends, jBPM removes it from the active list and put it in the history, so you cannot retrieve variables, or whatever anymore based on id's. The 4.1 release will, instead of throwing an exeption, tell you the instance cannot be found.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251851#4251851
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251851
16 years, 7 months
[jBPM Users] - File upload and JBPM:form
by TejJBPM
Hi all
I am trying to implement a File upload button in my task form using JSF. I am able to see the button and when i click on upload the enctype is not set properly. I think the problem is i am setting the enctype in h:form and jbpm:dataform is not able to understand or parse that..is there any obvious issues with this..any other alternative fix to this issue?
| <jbpm:dataform>
| <jbpm:datacell>
| <h:form id="uploadForm" enctype="multipart/form-data">
| <h:panelGrid columns="3">
| <f:facet name="header">
| <h:outputLabel value="Select file" />
| </f:facet>
| <t:inputFileUpload id="file" value="#{FileUploadBean.uploadedFile}" storage="file" immediate="true" required="true" />
| <h:message for="file" style="color: red;" />
| <h:panelGroup />
| <h:commandButton value="Upload" action="#{FileUploadBean.submit}" />
| <h:message for="uploadForm" infoStyle="color: green;" errorStyle="color: red;" />
| </h:panelGrid>
| </h:form>
| <h:outputLink value="file/#{FileUploadBean.fileName}" rendered="#{FileUploadBean.fileName != null}">
| Download back
| </h:outputLink>
| </jbpm:datacell> </jbpm:dataform>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251844#4251844
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251844
16 years, 7 months
[jBPM Users] - Re: JBPM Java Task return value
by jbpmjboss11
Sorry... here is jpdl file replaced "<" with "#"
#process name="casecreationtrial" xmlns="http://jbpm.org/4.0/jpdl"#
#start g="36,75,100,47" name="start1"#
#transition g="-49,-29" name="to Retrieve Application" to="Retrieve Application"/#
#/start#
#java class="com.mypackage.MyClass" g="173,70,175,58" method="test" var="answer" name="Retrieve Application" #
#arg##object expr="#{input.apre.force}"/##/arg#
#transition name="to end1" to="end1" g="-42,-18"/#
#/java#
#end g="481,69,92,49" name="end1"/#
#/process#
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251831#4251831
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251831
16 years, 7 months