during my investigation i readed this but it does not help me at my current knowledge. It can not answer my questions (for me)
thank you anyway
2 of 2 people found this helpful
Christoph Klapetke, thanks for pinging me, I never come to this community I did not realize there were questions there as well, usually I only check the Developer community.
Martin Loreck, my question would be why do you need this bean notation in the first place.
Ideally all fields should be available in the Data Dictionary so you would not have to use those kind of hacky notations. If your custom view component has input / output parameters they should be available in the Data Dictionary, you do not need to use this kind of notation.
So let me answer your questions:
* where can I use the Java Bean expression?
Technically anywhere in the expression editor but as I said above you should not have to.
In the past that was one way to access an object property before we had the "Document" feature. One of my example (GitHub - lmame/Sample-Library-Public: Sample Library Public , process "use object as input - object with attributes") was using this trick and indeed you could see that it is marked as "ERROR" in the expression editor, though at runtime it works.
The notation is a bit different than the one you are talking about since it is for process but the idea is the same.
Please note that the example below is old and you can use Documents now:
* what I am doing wrong?
Well it you look above it might actually be marked as ERROR in design time but work at runtime. We do not expect you to enter those kind of notation so the ERROR is more a lexical error than later an error at runtime.
* is it possible with Java Bean expression to use an Output from a process in my view in this way for further actions in my view?
Well you have an action "Launch Process" do you have there a couple of options depending on what you want to do.
You could have a record editor in the view that would serve just as placeholder.
So the cinematic would be:
- Add a record editor pointing to a Record Definition Name, display the "Description" field for example (you can put the record editor in a container and set the container visibility property to Hidden so the record editor would be hidden at runtime),
- In your component that would use the process result to do something, point one of his input parameter to the dummy record editor "description" field so it would react when a value is set in this field,
- Add a button,
- In this button add an action "Launch Process" and set it so you wait the process to be finished before getting to the next action ("Wait for Process Completion"),
- In this button add an action "Set Property" where you set the "dummy" record editor "description" field to the value of the launch process result,
So when you click on the button it will launch the process, store the result in the record editor Description field and then your component would see there is a value there and will react.
Another solution would be to call the process directly from your Component code as it is possible, I made an example here:
* is there any tutorial for Java Bean expressions?'
Can you share the page where you saw this information? I don't really think you need this, can you explain in what context you need this? Maybe we have a gap.
1 of 1 people found this helpful
You can also do directly a "set property" to a component input parameter but that implies doing a special declaration that a bit tricky... I might do a specific example for this.
mainly I want to know that because I get stuck to use the output from a process but now I get it work with set property. On the other hand I want to know which power has the java bean expression and how it works and has to be implemented.
thank you Laurent Matheo