如何在Json模式映射中使用自定义变量?我目前遇到错误:
JSON path @variables('myVariable01') is invalid.
答案 0 :(得分:0)
您必须使用类似
tableDataSource: Observable<CashPaymentModel>;
testMethod() {
this.tableDataSource = this.cashPaymentService.getCashPayments(this.policyVersionId, this.employeeId).pipe(
filter(res => res !== undefined),
).subscribe((res: CashPaymentModel) => {
if (res.success) {
this.tableDataSource = res.data;
} else {
// handle false success
// usually you should not send 200 response code for false success and handle it in
// err block of subscribe
}
});
}
其中clientId在您的json中
@activity('GetConfigurations').output.value[0].clientId
GetConfigurations是用于读取设置文件的查找活动。