BpmProcessInfoResult GetBpmWorkspace(BpmProcessId tBpmProcess)
tBpmProcess. Moniker of opened process.
The GetBpmWorkspace operation gets information about process structure.
To execute the operation, in the tBpmProcess field specify moniker of opened process. The moniker can be obtained after executing the OpenBpmProcess operation.
The operation results in the obtained sets of stages, step settings, gateway conditions.
Below is the example of getting process structure. The request contains moniker of opened process. The response contains the obtained information.
{
"GetBpmWorkspace" :
{
"tBpmProcess" :
{
"id" : "HBBODBAFBDNAGOAEMMDKMLHCADEHCLGEKJHCKBIALPJCLPHF!M!S!BPNDIADGAFBDNAGOAEHGKIOKHBHBJIJMIELINEGEDPGAGEIEAP"
}
}
}
{
"GetBpmWorkspaceResult" :
{
"name" : "Process 1",
"stages" :
{
"it" :
{
"stage" :
{
"name" : "Stage 1",
"index" : "0",
"guid" : "{D198A63E-B5BD-4791-88F3-3E60C9DE7A54}"
},
"gtwType" : "No_gateway",
"isCondActive" : "0",
"stGroups" :
{
"it" :
{
"stGroup" :
{
"index" : "0",
"guid" : "{322DDF61-B291-42CB-A075-53B7F4337743}"
},
"steps" :
{
"it" :
[
{
"isEnabled" : "1",
"name" : "Manual data entry",
"type" : "ManualTask",
"index" : "0",
"guid" : "{13F3BEEB-009D-4FF7-88CC-F3C41A025A99}",
"roleId" : "PS-1-144122",
"maxDur" :
{
"periodType" : "Week",
"amount" : "1"
},
"minDeadline" : "17:00",
"checkDeadline" : "1"
},
{
"isEnabled" : "1",
"name" : "Approve changes",
"type" : "Approval",
"index" : "1",
"guid" : "{0CF6521D-F5DB-48EB-A310-3897914390A6}",
"roleId" : "PS-1-1",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
},
"minDeadline" : "18:00",
"bindObjKey" : "340033",
"checkDeadline" : "1",
"data" :
{
"writeAccess" : "0",
"authObjKey" : "317058"
}
},
{
"isEnabled" : "1",
"name" : "Data entry",
"type" : "DataInput",
"index" : "2",
"guid" : "{6334B0E6-1E9F-45AA-BBA1-7F69C53F08C3}",
"roleId" : "PS-1-1",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
},
"minDeadline" : "18:00",
"bindObjKey" : "340033",
"checkDeadline" : "0",
"data" :
{
"authObjKey" : "302417"
}
},
{
"isEnabled" : "1",
"name" : "ETL task",
"type" : "EtlTask",
"index" : "3",
"guid" : "{97A8F45A-9E05-414C-91E5-5281769669C7}",
"roleId" : "PS-1-1",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
},
"minDeadline" : "18:00",
"bindObjKey" : "340040",
"checkDeadline" : "0"
}
]
},
"isDefaultFlow" : "0"
}
}
}
},
"stEv" :
{
"it" :
{
"per" :
{
"type" : "Monthly",
"mPer" :
{
"ms" :
{
"it" : "8"
},
"wM" :
{
"wOfM" : "5",
"dOfW" : "1"
}
}
},
"rep" : "1",
"id" : "START_TIMER_EVENT",
"stCom" : "",
"stDT" : "2023-08-23T09:36:18.000",
"dims" :
{
"it" :
{
"pKey" : "338159",
"dimS" :
{
"mnk" : "HBBODBAFBDNAGOAEMMDKMLHCADEHCLGEKJHCKBIALPJCLPHF!M!S!SOMJIMIAFBDNAGOAEEGJKDPPLPDBDLAJEFLMFLGHLADJGIHMM"
}
}
}
}
}
}
}
public static BpmProcessInfoResult GetBpmWorkspace(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmWorkspace()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker }
};
// Get information about workspace contents
var result = somClient.GetBpmWorkspace(tGet);
return result;
}
See also: