Hi, I'm trying to build a website with pageflows and process definitions (together).

I have a method called withing a transition in the pageflow (like in the numberguess example app...).Inside this method, I want to create a new process instance (invoking the method with the @CreateProcess annotation), but the instance is never created.

However, if I invoke that method (the one with @CreateProcess) from a button (like the TODO-list example), the process instance is created. I think the annotation isn't "interpreted" when the method is invoked manually.

This is the bean invoked within the transition in the pageflow. The method "isMessageSent" is used to redirect (evaluate decision in pageflow) to different webpages if the message has been successfully sent.

A solution could be: Add @CreateProcess to sendMessage() method, but I don't want a process instance to be created when the user sends a message. I want to create the process instance when the message is successfully sent, i mean, I want to decide its creation.