[JBoss jBPM] - Re: jpdl-3.2.Beta2: how to access variable from task form in
by avbentem
"kukeltje" wrote : For 3.2 you should use the docs from cvs. Especially the part for conditions in decisions has been clarified.
Ok, it took me some time to figger out that the repository at SourceForge.net is no longer used. Using :pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm instead of :pserver:anonymous@cvs.sourceforge.net:/cvsroot/jbpm did give me some new insight:
http://fisheye.jboss.com/browse/JBPM/jbpm.3/jpdl/userguide/en/modules/jpd...
anonymous wrote : Each leaving transitions of a node can have a condition. The decision will use these conditions to look for the first transition for which the condition evaluates to true.
|
| The first transition represents the otherwise branch. So first, all transitions with a condition are evaluated. If one of those evaluate to true, that transition is taken. If no transition with a condition resolves to true, the default transition (=the first one) is taken.
...and...
<!-- OOPS i wich this were true, but i think i never implemented it that way :-(
| A transition without a condition is considered to evaluate to true (to
| model the 'otherwise' branch).
| -->
Given the comment above I guess this does not apply to the 3.1 branch either.
Anyway: the above has been in CVS quite some time, so is also present in the documentation in the downloadable distributions. Don't know why I was reading them at jboss.org instead of from my local harddisk...
Thanks, one mistery less (still my problems with variables needs to be solved).
Arjan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019293#4019293
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019293
19Â years, 2Â months
[JBoss Seam] - Localselector in repeater
by face4web
Hi,
In most samples on the internet people uses the selectonemenu to select a local. But we want to select a locale using an arraylist of strings.
Action:
public ArrayList<String> getLanguages(){
| ArrayList<String> items = new ArrayList<String>();
| for(SelectItem s : LocaleSelector.instance().getSupportedLocales())
| items.add((String) s.getValue());
|
| return items;
| }
|
| public void setLanguage(ActionEvent ae){
| UIComponent tmpComponent = ae.getComponent();
| LocaleSelector.instance().selectLanguage(tmpComponent.getId());
| }
|
|
xHtml:
<ui:repeat value="#{languagesAction.languages}" var="language">
| <s:link value="#{language}" actionListener="#{languagesAction.setLanguage}" />
| </ui:repeat>
We can't set an ID dynamically (valuebinding 'problem'), using the f:param didn't work.
Who can help us?
Kind Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019291#4019291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019291
19Â years, 2Â months
[JBoss Seam] - Re: SFSB vs SLSBs for implementing actions in a conversation
by lawrieg
I've been mulling over all the posts overnight and I have to say that I'm still a little bit confused...
If I understand correctly, what is being said is that there are three quite different approaches to take when writing Seam apps (but you might use 1 & 2 together):
1. Implement all your conversational code in Stateful Session Beans. Each SFSB will implement a number of related use-cases (conversations). You would use an EJB3 Extended Persistence Context which has the scope of the SFSBs lifetime.
2. Implement all your conversational code in SLSBs and hold your conversation state in some other components and inject/outject them on your SLSB on every method call. You would use the Seam-Managed Persistence Context as this has the scope of a conversation. (Although, like Christian says, this seems like making work for yourself unless you are passing very small amounts of state and want bookmark-ability)
3. Implement all your conversational code using Seam-managed Javabeans. You would use the Seam-Managed Persistence Context as this has the scope of a conversation.
Now where I'm getting bit lost (and I might be being a bit thick because I'm full of flu and didn't get much sleep last night) is how you would actually implement the Seam-managed Javabeans approach. How does Seam know to make a regular Javabean into a Seam-managed Javabean (and does this bean now basically mimic a SFSB but with Seam storing its state in the Session)? Have you got to extend EntityHome to get this functionality?
Also, if you were going the SFSB or the Seam-managed Javabean route, would you tend to implement all the related use-cases (/conversations) for a particular business area in the same one bean? Say you also had a requirement to display a list of Customers (and provide each row with view, edit, delete links), would you implement this functionality in the same bean as well?
Cheers,
Lawrie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019290#4019290
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019290
19Â years, 2Â months
[JBoss jBPM] - Error: BPEL and processdefinition.xml
by fiorepaolo
Hi everyone,
I'm BPEL engineer certified, but it is the first time I'm using JBPM and JBPM-BPEL extension.
I'm installed successfull
- jboss-4.0.5.GA with hypersonic
- jwsdp-2.0
- jbpm-bpel-1.1.Beta3
using JDK 5.0.
I'm reading WS-Bpel Run-time User Guide, and following step-by-step the Hello world example. I've run with success the task "ant deploy-definition" but when I run "ant generate-service" the following error appear:
ant generate-service
Buildfile: build.xml
pack-definition:
generate-service:
[servicegen] 20-feb-2007 11.58.53 org.jbpm.JbpmConfiguration getInstance
[servicegen] INFO: using jbpm configuration resource 'jbpm.cfg.xml'
BUILD FAILED
C:\downloads\jbpm\bpel\jbpm-bpel-1.1.Beta3\examples\common\bpel-build.xml:78: org.jbpm.jpdl.JpdlException: [[ERROR] no processdefinition.xml inside process archive]
Why JPDL search in the archive processdefinition.xml. It doesn't exist. Exist the file bpel-definition.xml. Is it a mistake?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019287#4019287
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019287
19Â years, 2Â months
[Security & JAAS/JBoss] - Using container authentication (j_security_check) and having
by 7rond
Hi!
I've run into a bit of a problem here which I've tried to solve by myself but I can't seem to find the appropriate solution.
What I've set up so far is a web app configured with form authentication - that in turn uses my application policy in login-config.xml to provide JAAS authentication into the webapp. I need this to have some security in the ejb-beans the webapp will consume, and as of now this is working properly as long as I have some restricted content configured in web.xml that I can use to force Tomcat to show the configured login form.
Now, my problem is that this webapp is not supposed to demand the user to log in. Rather, logging in is optional and will only provide you with some extra features. I also need to have a login form present on each page, and this becomes troublesome as it isn't possible to make a custom form on a unrestricted page post to j_security_check it seems (that gives the error "HTTP Status 400 - Invalid direct reference to form login page").
So - basicly - I have the authentication stuff up and running, but I don't want any restricted resources in my webapp. I just want to be able to provide the user with the option to log in (without having to go to a new page to log in, but rather use a login form present on each page), and still be able to use the same authentication methods as I would have using j_security_check.
Is there any way to accomplish this? Any input would be appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019278#4019278
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019278
19Â years, 2Â months