Rather doing redirection shouldn't we load frame within our UI ?
And we need to evaluate and see how other common platforms direct users to
payment gateways.
And then we can come to conclusion.



On Mon, Sep 14, 2015 at 12:19 PM, Amila De Silva <[email protected]> wrote:

> Does this mean that depending on the outcome of running 'execute' method,
> Subscription workflow should be able change the HTTP response code (302 if
> a re-direct) sent back to the invoker?
>
>
>
> On Mon, Sep 14, 2015 at 12:02 PM, Nuwan Dias <[email protected]> wrote:
>
>> 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 <
>> [email protected]> 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: [email protected] | 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 : [email protected]
>> Phone : +94 777 775 729
>>
>
>
>
> --
> *Amila De Silva*
>
> WSO2 Inc.
> mobile :(+94) 775119302
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

<http://sanjeewamalalgoda.blogspot.com/>blog
:http://sanjeewamalalgoda.blogspot.com/
<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to