summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFradj Zayen2013-09-17 13:09:41 (EDT)
committer Stephan Born2013-10-23 07:33:53 (EDT)
commit65a673fe3f1b798a8f9957da89bd15d01058ada7 (patch)
tree7e56f400578251c7dd106f0504c346e33d60863b
parent1da90d823f538aa04dfc9d7ae8d935c0faae1ced (diff)
downloadorg.eclipse.stardust.engine-65a673fe3f1b798a8f9957da89bd15d01058ada7.zip
org.eclipse.stardust.engine-65a673fe3f1b798a8f9957da89bd15d01058ada7.tar.gz
org.eclipse.stardust.engine-65a673fe3f1b798a8f9957da89bd15d01058ada7.tar.bz2
Jira-ID: CRNT-30514
CAT: Invalid definition for Camel Producer Application created from Browser modeler git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/engine@67332 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Fradj Zayen <fradj.zayen@sungard.com>
-rw-r--r--stardust-engine-camel/src/main/java/org/eclipse/stardust/engine/extensions/camel/GenericProducer.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/stardust-engine-camel/src/main/java/org/eclipse/stardust/engine/extensions/camel/GenericProducer.java b/stardust-engine-camel/src/main/java/org/eclipse/stardust/engine/extensions/camel/GenericProducer.java
index b4f462c..045790f 100644
--- a/stardust-engine-camel/src/main/java/org/eclipse/stardust/engine/extensions/camel/GenericProducer.java
+++ b/stardust-engine-camel/src/main/java/org/eclipse/stardust/engine/extensions/camel/GenericProducer.java
@@ -10,11 +10,15 @@ import org.apache.camel.ProducerTemplate;
import org.apache.camel.impl.DefaultExchange;
import org.eclipse.stardust.common.StringUtils;
import org.eclipse.stardust.common.error.PublicException;
+import org.eclipse.stardust.common.log.LogManager;
+import org.eclipse.stardust.common.log.Logger;
import org.eclipse.stardust.engine.api.runtime.ActivityInstance;
public class GenericProducer
{
+ public static final Logger logger = LogManager.getLogger(GenericProducer.class
+ .getCanonicalName());
public static final String SEND_METHOD = "executeMessage(java.lang.Object)"; //$NON-NLS-1$
public static final String SEND_METHOD_WITH_HEADER = "executeMessage(java.lang.Object,java.util.Map<java.lang.String,java.lang.Object>)"; //$NON-NLS-1$
public static final String SEND_RECEIVE_METHOD_WITH_HEADER = "sendBodyInOut(java.lang.Object,java.util.Map<java.lang.String,java.lang.Object>)"; //$NON-NLS-1$
@@ -43,6 +47,16 @@ public class GenericProducer
String invocationType = (String) activityInstance.getActivity().getApplication()
.getAttribute(CamelConstants.INVOCATION_TYPE_EXT_ATT);
+ if (StringUtils.isEmpty(invocationPattern) )
+ {
+ logger.debug("Attribute "+CamelConstants.INVOCATION_PATTERN_EXT_ATT+" is missing");
+ }
+
+ if (StringUtils.isEmpty(invocationType) )
+ {
+ logger.debug("Attribute "+CamelConstants.INVOCATION_TYPE_EXT_ATT+" is missing");
+ }
+
if (StringUtils.isNotEmpty(invocationPattern) && StringUtils.isNotEmpty(invocationType))
{