[JBoss jBPM] - Re: Implementing data flow
by estaub
Good idea - I was thinking similar things. Being able to see data flow at a high level is very useful.
Currently, I don't believe the process definition can actually know what the flow is, because the handlers can access the variables at runtime without any declaration. The exception is scripts, although even they can access process variables without declaration, through the ExecutionContext.
A complication is presented by events. If a variable is used in an event action handler on entry or exit to/from a node, how should this be denoted?
This kind of UI work requires a really good eye, enough time to experiment, and strong implementation skills. Process graphs are often cluttered already - adding another 2 or 3 dimensions to them (variable/read-write/event-type) will make things too cluttered unless done very cleverly. For example, it may be desirable to show data flow in a display mode that hides the node rectangles, or at least reduces their alpha.
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017251#4017251
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017251
19Â years, 2Â months
[JBoss Seam] - MockApplication in SeamTest not easily overridable
by matt.drees
The app I'm working on has to do some dynamic UIComponent creation. Something like
| questionPanel = (HtmlPanelGrid) facesContext.getApplication().createComponent(HtmlPanelGrid.COMPONENT_TYPE);
|
where facesContext is injected.
For my unit tests, I'm using a simple mock Application:
| public class MockApplicationExtension extends MockApplication {
|
| @Override
| public UIComponent createComponent(String name) throws FacesException {
| if (name.equals(HtmlOutputLabel.COMPONENT_TYPE))
| return new HtmlOutputLabel();
| if (name.equals(HtmlOutputText.COMPONENT_TYPE))
| return new HtmlOutputText();
| if (name.equals(HtmlInputText.COMPONENT_TYPE))
| return new HtmlInputText();
| if (name.equals(HtmlPanelGrid.COMPONENT_TYPE))
| return new HtmlPanelGrid();
| return null;
| }
|
| @Override
| public ValueBinding createValueBinding(String valueExpression) throws ReferenceSyntaxException {
| return null;
| }
| }
|
I can't use this in integration tests, however. SeamTest doesn't provide a nice way to override the built-in MockApplication (that I can see).
Could SeamTest be altered to let me hook into the instantiation of the application field?
Or could MockApplication be extended to do some basic component creation, as I've done above? (maybe this wouldn't work well; I haven't thought about it much)
Also, if anyone has any pointers on how to work with dynamic UIComponent creation/binding in Seam, I'd love to hear them. I'm mostly going off this article:
http://technology.amis.nl/blog/?p=1187
I'm not sure if Seam provides a better way to do it.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017244#4017244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017244
19Â years, 2Â months