Hi,
I'm working on something similar.
To fire portlet-events from a webflow, I use a Custom-Action:
Code:
package myPackage;
import javax.portlet.ActionResponse;
import javax.xml.namespace.QName;
import org.springframework.webflow.execution.Action;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;
public class FireCreateAccountEvent implements Action {
/**
* Fires portlet 2.0 event to initialize CreateAccount
*/
public Event execute(RequestContext context) throws Exception {
System.out.println("Fire Account Event");
ActionResponse response = (ActionResponse) context.getExternalContext().getNativeResponse();
response.setEvent(new QName("http://myDomain/events", "x:showCreateAccount"), "");
return new Event(this ,"success");
}
}
Now, I'm looking for a solution to start Webflows based on a Event, I think, I have to modify the ViewFlowHandler-Bean, but I don't know how at tihs time.
Regards,
Michael