[ 
https://issues.apache.org/jira/browse/OOZIE-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14573925#comment-14573925
 ] 

Srikanth Sundarrajan commented on OOZIE-2259:
---------------------------------------------

Callback action can be quite useful. Have some questions relating to the 
proposal though.

1. Would standard action level retries be available for this, am assuming it 
will be. Please confirm
2. Host isn't adequate, you essentially need a URL comprising of scheme and 
authority
3. The method being queue/topic is misleading. Would suggest HTTP_GET, 
HTTP_POST, QUEUE_OFFER, TOPIC_PUBLISH to be explicit.
4. From the proposal it seems like it is not possible to include post body, 
That should actually be ok. Just wanted to hear your thoughts on that.
5. Would capture-ouput work for this action?
6. In case of HTTP_METHODS you might get a response body, will that be 
preserved should the user need them. In my view, that can be skipped too, as 
this is to serve as a callback notification
7. Would this be a fire and forget action. Say you get a HTTP/400 back what 
would be the behavior ?
8. How is this proposed to be implemented ? As an action performed through the 
launcher (via JavaActionExecutor) or something along the lines of 
FsActionExecutor/EmailActionExecutor?

> Create a callback action 
> -------------------------
>
>                 Key: OOZIE-2259
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2259
>             Project: Oozie
>          Issue Type: New Feature
>          Components: action
>            Reporter: Jaydeep Vishwakarma
>            Assignee: Jaydeep Vishwakarma
>
> Need an action to send notification to external server by oozie. We should be 
> able to do multiple types of callback, Currently I know jms and http call. It 
> should suppose to have capability to call diffrent types of methods along 
> with n number of arguments. 
> The sample workflow with callback action 
> {code:xml}
> <workflow-app name="[WF-DEF-NAME]" xmlns="uri:oozie:workflow:0.3">
> ...
> <action name="[NODE-NAME]">
> <callback>
>       <host>[HOST]</host>
>       <method>[METHOD]</command>
>       <arg>
>               <key>[KEY]</key><value>[VALUE]</value>
>       <arg>
>             ...
> </action>
> ...
> </callback>
> ...
> </workflow-app>
> {code}
> HOST : by the host system can figure out if it is http or jms callback 
> action. System will send the notification to that host.
> METHOD : it can be POST/GET/QUEUE/TOPIC



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to