Re: [Dev] [IS] Creating a Custom Workflow Implementation

2016-04-24 Thread Harsha Thirimanna
Hi Chamila,
Yes, we can implement this using workflow framework.
You can use current multi step template and have to implement several
classes as follows.

First you have to implement AbstractWorkflow because you are going to have
new implementation. But still it has two another interfaces
 TemplateInitializer for initialization task and WorkflowExecutor for
actual run-time execution.
In your case, you can send email within this WorkflowExecutor->execute
method.

You have to register your new implementation as we have done it in current
BPS implementation.

For the callback side, you can register rest endpoint from your new
implementation component and get the call from Email. Then you can call the
callback endpoint as webservice or java call.

thanks



*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Sun, Apr 24, 2016 at 10:41 PM, Chamila Wijayarathna 
wrote:

> Hi all,
>
> Currently IS only support Workflow Implementation which used WSO2 BPS. I
> want to implement a usecase using IS workflow feature where when a user
> register, an email goes to that user's email and only when he clicked a
> link there user account get created. This is somewhat similar to ask
> password feature, but I am interested in exploring how to achieve this
> using workflow.
>
> It seems like I need to do this by extending *AbstractWorkflow* class,
> but still I'm not sure what methods I need to implement and what I need to
> do there. Can someone point me on how to do this?
>
> Thank You!
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Creating a Custom Workflow Implementation

2016-04-24 Thread Chamila Wijayarathna
Hi all,

Currently IS only support Workflow Implementation which used WSO2 BPS. I
want to implement a usecase using IS workflow feature where when a user
register, an email goes to that user's email and only when he clicked a
link there user account get created. This is somewhat similar to ask
password feature, but I am interested in exploring how to achieve this
using workflow.

It seems like I need to do this by extending *AbstractWorkflow* class, but
still I'm not sure what methods I need to implement and what I need to do
there. Can someone point me on how to do this?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev