GetDbaResult GetDba(OdId tOb, GetDbaArg tArg)
tOb. Moniker of opened business application instance.
tArg. Operation execution parameters.
The GetDba operation gets business application metadata.
To execute the operation, in the tOb field specify moniker of opened business application instance, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained on executing the OpenDba operation.
The operation results in the obtained metadata.
Below is the example of getting business application metadata. The request contains moniker of opened business application instance and the pattern that will be used to return metadata. The response contains the obtained metadata.
{
"GetDba" :
{
"tOb" :
{
"id" : "EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"parsOwnDefVals" : "true",
"db" : "true"
}
}
}
}
{
"GetDbaResult" :
{
"id" :
{
"id" : "EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "DBA_APP",
"n" : "Business application",
"k" : "340435",
"c" : "1054465",
"p" : "340516",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0"
}
}
}
public static GetDbaResult GetDba(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDba()
{
tArg = new GetDbaArg()
{
pattern = new DbaMdPattern()
{
db = true
}
},
// Create object moniker
tOb = new OdId() { id = moniker }
};
// Get information about business process
var result = somClient.GetDba(tGet);
return result;
}
See also: