fixed
This commit is contained in:
parent
e163f0698b
commit
300a5005ba
1 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,10 @@ export class ExecCalculationInstanceProcessScenario extends CallbackStrategyWith
|
||||||
async (model) => {
|
async (model) => {
|
||||||
const fileOutPath = model.instancePath.pathNormalize() + "/form.json";
|
const fileOutPath = model.instancePath.pathNormalize() + "/form.json";
|
||||||
return (await new IsHaveActiveProcessUseCase().call()).map(async () => {
|
return (await new IsHaveActiveProcessUseCase().call()).map(async () => {
|
||||||
const execCommand = `${model.script} --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`;
|
const execCommand = `${
|
||||||
console.log(execCommand);
|
model.script
|
||||||
|
} --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`.replace(/[^a-zA-Z0-9s]/g, "");
|
||||||
|
// console.log(execCommand);
|
||||||
|
|
||||||
await new CreateFileUseCase().call(fileOutPath, Buffer.from(JSON.stringify(model.formBuilder)));
|
await new CreateFileUseCase().call(fileOutPath, Buffer.from(JSON.stringify(model.formBuilder)));
|
||||||
await CalculationInstanceDBModel.findById(id).updateOne({
|
await CalculationInstanceDBModel.findById(id).updateOne({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue