-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Example SW
"actions": [ { "name": "ansibleAction", "functionRef": { "refName": "triggerAnsible", "arguments": { "id": "7", "data": { "extra_vars": { "kogito_id": "test" } } } } } ],
Results in
Caused by: java.lang.IllegalArgumentException: Failed to parse input model from ordinary String to Json tree at org.kie.kogito.serverless.workflow.JsonNodeResolver.parse(JsonNodeResolver.java:48) at org.kie.kogito.serverless.workflow.JsonNodeResolver.evalExpression(JsonNodeResolver.java:55) at org.kie.kogito.process.expr.ExpressionWorkItemResolver.apply(ExpressionWorkItemResolver.java:37) at org.kie.kogito.process.expr.ExpressionWorkItemResolver.apply(ExpressionWorkItemResolver.java:23) at org.kie.kogito.process.workitems.impl.KogitoWorkItemImpl.processValue(KogitoWorkItemImpl.java:522) at org.kie.kogito.process.workitems.impl.KogitoWorkItemImpl$ProxyMap.get(KogitoWorkItemImpl.java:298) at org.kie.kogito.process.workitems.impl.KogitoWorkItemImpl.getParameter(KogitoWorkItemImpl.java:100) at org.kie.kogito.handlers.JobTemplatesApi_jobTemplatesJobTemplatesLaunchCreate_triggerAnsible_Handler.executeWorkItem(JobTemplatesApi_jobTemplatesJobTemplatesLaunchCreate_triggerAnsible_Handler.java:23) at org.kie.kogito.handlers.JobTemplatesApi_jobTemplatesJobTemplatesLaunchCreate_triggerAnsible_Handler_ClientProxy.executeWorkItem(Unknown Source) at org.jbpm.process.instance.LightWorkItemManager.internalExecuteWorkItem(LightWorkItemManager.java:80) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.lambda$internalTrigger$0(WorkItemNodeInstance.java:155) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.processWorkItemHandler(WorkItemNodeInstance.java:168) ... 58 more Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('e' (code 101)): was expecting double-quote to start field name at [Source: (String)"{extra_vars={kogito_id=test}}"; line: 1, column: 3] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2391) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:735) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:659) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddName(ReaderBasedJsonParser.java:1860) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextFieldName(ReaderBasedJsonParser.java:962) at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer._deserializeContainerNoRecursion(JsonNodeDeserializer.java:437) at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:84) at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:20) at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:322) at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4716) at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3076) at org.kie.kogito.serverless.workflow.JsonNodeResolver.parse(JsonNodeResolver.java:46)
- is related to
-
KOGITO-6313 Self-Healing systems use case with Ansible and Serverless Workflow
- Resolved