Hi Rohit,

If you made some changes to a component, you will need to build it and
place in patches directory. You no need of building the product, but just
build the component that you made the change and add it as a patch.

Thanks,
Harsha
On Sat, Jul 18, 2015 at 11:37 PM, Rohit Abraham <rohitab...@gmail.com>
wrote:

> Hi harsha,
> I did make a jar file of the class that extends the UserSignUpWorkflowExecutor
> but when i ran API Manager after that it said the DTO Class could not be
> found and that happens because there is no default UserSignUpDTO in the API
> Manager implementation that contains user sign up details. So in such a
> case I need to make changes to source code itself and build that right?
> Or is there any better approach to the problem?
> Thanks in advance!
>
> On Sat, Jul 18, 2015 at 8:18 PM, Harsha Kumara <hars...@wso2.com> wrote:
>
>> I think you can put this to the lib folder as suggest in the wiki page.
>> Since you are not doing any modification to the existing component. You no
>> need to patch.
>>
>> On Sat, Jul 18, 2015 at 6:36 PM, rohit <rohitab...@gmail.com> wrote:
>>
>>> Hi harsha,
>>> Thanks for your prompt reply. I'm not pretty sure about my understanding
>>> of
>>> patches. Ok here is what I have done.
>>> I had a requirement of sending an email whenever a user signs up in the
>>> API
>>> Store, So what I did was extend the *UserSignUpWorkflowExecutor* class
>>> and
>>> also wrote the logic for sending email to the user in my complete method
>>> then depending on whether the status is approved or not I send an email.
>>> So
>>> Initially I made a jar file and followed the procedure mentioned in  :
>>> https://docs.wso2.com/display/AM190/Customizing+a+Workflow+Extension
>>> But when I ran API manager, there was an exeption that the DTO class was
>>> not
>>> found, which made me realize that in the sample code there was an
>>> SubscriptionWorkflowDTO class that contained details about subscriptions
>>> being created but there was no UserSignUpDTO class available. So Now I
>>> have
>>> a sample class that extends the *UserSignUpWorkflowExecutor* class and i
>>> have implemented the same kind of logic implented in
>>> *UserSignUpWSWorkflowExecutor* class with an additional capability of
>>> sending an email.
>>> So in this scenario, will applying a patch do? If so will save me a lot
>>> of
>>> time and effort. Can you suggest what should be the best approach
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://wso2-oxygen-tank.10903.n7.nabble.com/Building-WSO2-API-Manager-1-9-0-from-Source-tp121905p121914.html
>>> Sent from the WSO2 Development mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to