IMO, checking the user information, payment information, etc are
implementation details of the workflow. What the WorkflowExecutor lacks
today is the ability to do http redirections when a workflow has been
executed/completed. We shouldn't worry about the implementation details of
the workflow but focus on extending its capability to support those
implementations.

The 'execute' and 'complete' functions have no return type ATM. We should
probably introduce something like a "WorkflowResponse" abstract type. This
could be HttpResponses or any other form of responses. The response type
implementation should take care of what happens after the 'execute' and
'complete' actions.

Thanks,
NuwanD.



On Mon, Sep 14, 2015 at 9:48 AM, Madusanka Premaratne <madusan...@wso2.com>
wrote:

> Hi All,
> I am going to implement the $subject for WSO2 API manager to enable the
> capability of handling paid APIs. The data flow diagram can be seen as
> follows.
>
>
> ​
> ​
>
> As described in the figure above if there are no payment plans set for the
> subscriber the workflow will redirect to third party/inbuilt web page to
> collect those information. If those are already defined it will just
> continue the subscription process.
>
> To fulfil the above task, I am going to change the existing *execute*
> method of *WorkflowExecutor* to handle the redirection process and to
> receive the feedback. After the operation from the webpage/ the required
> details are already collected the webpage will send a response back to
> workflow executer to complete the execution and complete the subscription.
>
> Suggestions and feedbacks are welcome.
>
> Thanks,
> Madusanka
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
> <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to