liuzhebaba opened a new issue, #7120:
URL: https://github.com/apache/incubator-seata/issues/7120

   <!-- Please do not use this issue template to report security 
vulnerabilities but refer to our [security 
policy](https://github.com/seata/seata/security/policy). -->
   
   - [ ] I have searched the [issues](https://github.com/seata/seata/issues) of 
this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   
   
   ### Ⅱ. Describe what happened
   
     If there is an exception, please attach the exception trace:
   
   ```
   It inter the fail branch,my json file have compensate method,then the status 
become unknown,i will post the picture and json file below.
   ```
   
   the json file
   ```
   {
       "Name": "soldAuditChoiceStateMachine",
       "Comment": "已定审核带分支的状态机定义",
       "StartState": "FirstState",
       "Version": "0.0.5",
       "States": {
           "FirstState": {
               "Type": "ServiceTask",
               "ServiceName": "submitSoldSagaManager",
               "ServiceMethod": "getOrderInfoByTradeId",
               "Next": "ChoiceState",
               "Input": ["$.[soldInfoReq].tradeId"],
               "Output": {
                   "tradeOrderResp": "$.#root"
               }
           },
           "ChoiceState":{
               "Type": "Choice",
               "Choices":[
                   {
                       "Expression":"[tradeOrderResp]!=null && 
[tradeOrderResp].orderType == 13",
                       "Next":"SecondState"
                   }
               ],
               "Default":"ThirdState"
           },
           "SecondState": {
               "Type": "ServiceTask",
               "ServiceName": "submitSoldSagaManager",
               "ServiceMethod": "soldAudit",
               "CompensateState": "CompensateSoldAudit",
               "Next": "ResultState",
               "Input": ["$.[soldInfoReq]"],
               "Output": {
                   "dResult": "$.#root"
               },
               "Catch": [
                   {
                       "Exceptions": [
                           "java.lang.RuntimeException"
                       ],
                       "Next": "CompensationTrigger"
                   }
               ]
           },
           "ThirdState": {
               "Type": "ServiceTask",
               "ServiceName": "submitSoldSagaManager",
               "ServiceMethod": "submitSoldAudit",
               "CompensateState": "CompensateSubmitSoldAudit",
               "Next": "ResultState",
               "Input": ["$.[soldInfoReq]"],
               "Output": {
                   "dResult": "$.#root"
               },
               "Catch": [
                   {
                       "Exceptions": [
                           "java.lang.RuntimeException"
                       ],
                       "Next": "CompensationTrigger"
                   }
               ]
           },
           "CompensateSoldAudit": {
               "Type": "ServiceTask",
               "ServiceName": "submitSoldSagaManager",
               "ServiceMethod": "compensateSoldAudit",
               "Input": [
                   {
                       "compensateInput": "$.[soldInfoReq]",
                       "throwException": "$.[exception]"
                   }
               ]
           },
           "CompensateSubmitSoldAudit": {
               "Type": "ServiceTask",
               "ServiceName": "submitSoldSagaManager",
               "ServiceMethod": "compensateSubmitSoldAudit",
               "Input": [
                   {
                       "compensateInput": "$.[soldInfoReq]",
                       "throwException": "$.[exception]"
                   }
               ]
           },
           "CompensationTrigger": {
               "Type": "CompensationTrigger",
               "Next": "Fail"
           },
           "ResultState":{
               "Type": "Choice",
               "Choices":[
                   {
                       "Expression":"[dResult].code == 0",
                       "Next":"Succeed"
                   }
               ],
               "Default":"Fail"
           },
           "Succeed": {
               "Type":"Succeed"
           },
           "Fail": {
               "Type":"Fail",
               "ErrorCode": "NOT_FOUND",
               "Message": "not found"
           }
       }
   }
   ```
   
   the stateMachine status:
   
   
![Image](https://github.com/user-attachments/assets/83b2f5d9-8d88-48e5-874f-f3f398ea80cb)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to