IDslCompilerContextSetDataSource Method
|
Set a ActualData Object that is created in Scripted Activity to a Workflow ActualData Source
so it can be used in Form Activity.
Namespace: Casewhere.Runtime.DSL.CompilerContextAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxvoid SetDataSource(
string dataSourceName,
params string[] dataObjectIds
)
Parameters
- dataSourceName String
- ActualData Source name.
- dataObjectIds String
- ActualData Object ids.
Remarks
The ActualData Source's context must be set to "Manual".
Examplevar dataApi = ctx.Use<IDataApi>();
var employeeId = dataApi.Add("Employee", candidateObj);
ctx.SetDataSource("employeeToEdit", employeeId);
See Also