Bonita jackson无法识别的令牌期待('true','false'或'null')

时间:2021-09-30 17:09:14

i had created very simple flow i had attached the picture below.

我创建了非常简单的流程,我附上了下面的图片。

flow description :

流程描述:

User sends the expense report and finally it gets reviewed and should be approved while i am clicking the approved button. but i was getting error as below :

用户发送费用报告,最后进行审核,并且在点击批准的按钮时应该获得批准。但我得到的错误如下:

com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'onAccept1': was expecting ('true', 'false' or 'null').

current json that i have on variable

我对变量的当前json

onAccept1 : return {"comments1" : $data.comments1, "isApproved1":false};

can any body please what was the mistake in the json , that i have on the variable called "onAccept1".

可以任何身体,请问json中的错误是什么,我对变量叫做“onAccept1”。

Bonita jackson无法识别的令牌期待('true','false'或'null')

i got this error while submitting thtask , below was my contract def: Bonita jackson无法识别的令牌期待('true','false'或'null')

我在提交任务时遇到此错误,下面是我的合同def:

1 个解决方案

#1


0  

Actually you got two different errors in the "Review report1" step form ("newForm12") that prevent successful submission of the form when clicking on "Accept" button.

实际上,您在“审核报告1”步骤表单(“newForm12”)中有两个不同的错误,这些错误会阻止在单击“接受”按钮时成功提交表单。

First one is the way the onAccept1 form variable is bind with the "Accept" button. In your version "Data send on click" property is set with a constant value instead of an expression. So with the current value set to onAccept1 means that the value sent will actually be onAccept1. You need to switch from constant to expression by clicking on the "fx" icon on the right of the "Data sent on click" property.

第一个是onAccept1表单变量与“Accept”按钮绑定的方式。在您的版本中,“数据发送单击”属性设置为常量值而不是表达式。因此,将当前值设置为onAccept1意味着发送的值实际上是onAccept1。您需要通过单击“Click click on click”属性右侧的“fx”图标从常量切换到表达式。

You will switch from Bonita jackson无法识别的令牌期待('true','false'或'null')
to Bonita jackson无法识别的令牌期待('true','false'或'null')

你将切换到

Second one is the definition of the onAccept1 value: you miss the return keyword and have quotes around $data value that should not be there. Here is the correct value: return {"comments1": $data.comments1, "isApproved1": true};

第二个是onAccept1值的定义:你错过了return关键字并且在$ data值附近有引号,不应该在那里。这是正确的值:return {“comments1”:$ data.comments1,“isApproved1”:true};

#1


0  

Actually you got two different errors in the "Review report1" step form ("newForm12") that prevent successful submission of the form when clicking on "Accept" button.

实际上,您在“审核报告1”步骤表单(“newForm12”)中有两个不同的错误,这些错误会阻止在单击“接受”按钮时成功提交表单。

First one is the way the onAccept1 form variable is bind with the "Accept" button. In your version "Data send on click" property is set with a constant value instead of an expression. So with the current value set to onAccept1 means that the value sent will actually be onAccept1. You need to switch from constant to expression by clicking on the "fx" icon on the right of the "Data sent on click" property.

第一个是onAccept1表单变量与“Accept”按钮绑定的方式。在您的版本中,“数据发送单击”属性设置为常量值而不是表达式。因此,将当前值设置为onAccept1意味着发送的值实际上是onAccept1。您需要通过单击“Click click on click”属性右侧的“fx”图标从常量切换到表达式。

You will switch from Bonita jackson无法识别的令牌期待('true','false'或'null')
to Bonita jackson无法识别的令牌期待('true','false'或'null')

你将切换到

Second one is the definition of the onAccept1 value: you miss the return keyword and have quotes around $data value that should not be there. Here is the correct value: return {"comments1": $data.comments1, "isApproved1": true};

第二个是onAccept1值的定义:你错过了return关键字并且在$ data值附近有引号,不应该在那里。这是正确的值:return {“comments1”:$ data.comments1,“isApproved1”:true};