Created
January 18, 2011 15:03
-
-
Save estebanroblesluna/784544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="receiveRequests"> | |
<http:inbound-endpoint | |
address="http://localhost:9090/picture-request/services/receiveRequest" | |
exchange-pattern="request-response"> | |
<response> | |
<script:transformer> | |
<script:script engine="groovy"> | |
return "Success" | |
</script:script> | |
</script:transformer> | |
</response> | |
</http:inbound-endpoint> | |
<http:body-to-parameter-map-transformer /> | |
<script:component> | |
<script:script engine="groovy"> | |
Map map = new HashMap() | |
map.put("processDefinitionId", "pictureRequest:1") //the id of the definition | |
map.put("imageName", payload.get("imageName")) | |
map.put("user", payload.get("user")) | |
return map | |
</script:script> | |
</script:component> | |
<activiti:outbound-endpoint description="createRequestProcess"> | |
<activiti:create-process /> | |
</activiti:outbound-endpoint> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment