Skip to content

Commit

Permalink
enhance camel documentation and getting ouput from camel route
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeid Mirzaei committed Nov 11, 2013
1 parent 1d99fa5 commit f3a84e0
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ public static Map<String, Object> prepareVariables(Exchange exchange, ActivitiEn
camelVarMap = exchange.getProperties();
} else {
camelVarMap = new HashMap<String, Object>();
Object camelBody = exchange.getIn().getBody();
Object camelBody = null;
if (exchange.hasOut())
camelBody = exchange.getOut().getBody();
else
camelBody = exchange.getIn().getBody();


if(camelBody instanceof Map<?,?>) {
Map<?,?> camelBodyMap = (Map<?,?>)camelBody;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.activiti.camel;


/**
* @author Saeid Mirzaei
*/
import java.util.List;

/**
Expand All @@ -14,9 +18,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;


@ContextConfiguration("classpath:camel-activiti-context.xml")

public class AsyncPingTest extends SpringActivitiTestCase {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

package org.activiti.camel;

/**
* @author Saeid Mirzaei
*/

import java.util.List;

import org.activiti.engine.RuntimeService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.camel.examples.pingPong;

/**
* @author Saeid Mirzaei
*/

import org.apache.camel.builder.RouteBuilder;

public class PingPongRoute extends RouteBuilder {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.camel.examples.pingPong;

/**
* @author Saeid Mirzaei
*/

import java.util.HashMap;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.camel.examples.pingPong;

/**
* @author Saeid Mirzaei
*/

import java.util.Map;

import org.activiti.engine.delegate.DelegateExecution;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
package org.activiti.camel.examples.simpleCamelCall;


/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -14,6 +11,7 @@
* limitations under the License.
*/

package org.activiti.camel.examples.simpleCamelCall;

import org.apache.camel.builder.RouteBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

package org.activiti.camel.revisited;

/**
* @author Saeid Mirzaei
*/

import java.util.List;

import org.activiti.engine.RuntimeService;
Expand Down

0 comments on commit f3a84e0

Please sign in to comment.