用于流程配置的服务调用活动中的“消息体脚本”,仅在jaxrs方式的服务调用活动中可用。
Usable Range
流程配置-服务调用活动中的“消息体脚本”,服务协议为jaxrs
                
            Deprecated
- body对象已经不建议使用了。建议return一个json对象的方式来设置body。如:
return { "key1": "value1", "key2": "value2", "key3": "value3" };
Examples
//设置jaxrs服务调用的消息体
this.body.set({
    "key1": "value1",
    "key2": "value2",
    "key3": "value3"
})
//或者设置
this.body.set("this is body data");
   body.set方法是为了兼容以前的版本。
   建议通过return一个json对象的方式来设置消息体内容
return {
     "key1": "value1",
    "key2": "value2",
    "key3": "value3"
};
//或
return "this is body data";Methods
    static
    
    
    set(dataopt)
Summary
服务调用活动中的“消息体脚本”,用于设置消息体内容。
Syntax
this.body.set(data);Parameters
- 
            
                data
            
            
                
    
        String|Object<optional>
 消息体内容。 
Deprecated
- 不建议使用,建议return一个json对象或数组的方式来设置body。