It seems like in run time the value we get for “ifsBpaProjectionOperation” is not compatible with Spin libs prop().
Can you try change the script slightly like the following. Adding String() will get the string representation of the value of the `ifsBpaProjectionOperation` which should solve the issue you are seeing
From workflow perspective it looks like spin is working as expected. since the json variable is created properly.
Can you give bit more detail on what you are trying to do ? if the external system call happening inside the workflow as an IFS REST task or how are you using the json variable (varJsonBody) to set it to the external Rest API call?
Yes, the external system call happens as a REST task.
Debug works fine and create the json payload properly send the request, which means the syntax in the Create Delete payload script (which mentioned above) is fine.
Then I deploy the BPA, and getting the above mentioned exception when trying to trigger the workflow by deleting a customer record. I enabled the devtools and got some additional details about the error.
1Customer/Form (server error)
2Unexpected internal server error occurred.
3Error details: N/A
4
5Server stack trace error(s):
6 java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String, java.lang.Number), (java.lang.String, java.lang.String), (java.lang.String, java.lang.Boolean), (java.lang.String, boolean), (java.lang.String, int)] of the method org.camunda.spin.impl.json.jackson.JacksonJsonNode.prop for argument types [java.lang.String, com.ifsworld.fnd.bpa.process.ProjectionAction]
7 Can't unambiguously select between fixed arity signatures [(java.lang.String, java.lang.Number), (java.lang.String, java.lang.String), (java.lang.String, java.lang.Boolean), (java.lang.String, boolean), (java.lang.String, int)] of the method org.camunda.spin.impl.json.jackson.JacksonJsonNode.prop for argument types [java.lang.String, com.ifsworld.fnd.bpa.process.ProjectionAction]
It seems like in run time the value we get for “ifsBpaProjectionOperation” is not compatible with Spin libs prop().
Can you try change the script slightly like the following. Adding String() will get the string representation of the value of the `ifsBpaProjectionOperation` which should solve the issue you are seeing
Trigger for this is an event and we are trying to sync customer records with a 3rd party system
But in the execution, it gives an unexpected server eror
Looks like it Spin.Json prop() doesn’t work. Is this a bug?
IFS version: 24.1.3
Page 1 / 1
Hi,
From workflow perspective it looks like spin is working as expected. since the json variable is created properly.
Can you give bit more detail on what you are trying to do ? if the external system call happening inside the workflow as an IFS REST task or how are you using the json variable (varJsonBody) to set it to the external Rest API call?
Yes, the external system call happens as a REST task.
Debug works fine and create the json payload properly send the request, which means the syntax in the Create Delete payload script (which mentioned above) is fine.
Then I deploy the BPA, and getting the above mentioned exception when trying to trigger the workflow by deleting a customer record. I enabled the devtools and got some additional details about the error.
1Customer/Form (server error)Unexpected internal server error occurred.Errordetails: N/AServer stack trace error(s): java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String, java.lang.Number), (java.lang.String, java.lang.String), (java.lang.String, java.lang.Boolean), (java.lang.String, boolean), (java.lang.String, int)] of the method org.camunda.spin.impl.json.jackson.JacksonJsonNode.prop for argument types [java.lang.String, com.ifsworld.fnd.bpa.process.ProjectionAction] Can't unambiguously select between fixed arity signatures [(java.lang.String, java.lang.Number), (java.lang.String, java.lang.String), (java.lang.String, java.lang.Boolean), (java.lang.String, boolean), (java.lang.String, int)] of the method org.camunda.spin.impl.json.jackson.JacksonJsonNode.propfor argument types [java.lang.String, com.ifsworld.fnd.bpa.process.ProjectionAction]
It seems like in run time the value we get for “ifsBpaProjectionOperation” is not compatible with Spin libs prop().
Can you try change the script slightly like the following. Adding String() will get the string representation of the value of the `ifsBpaProjectionOperation` which should solve the issue you are seeing
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.