IDslCompilerContextAttachToDataSource Method
|
Links 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.CompilerContext
Assembly:
Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax void AttachToDataSource(
string dataSourceName,
params string[] dataObjectIds
)
Parameters
- dataSourceName
- Type: SystemString
ActualData Source name. - dataObjectIds
- Type: SystemString
ActualData Object ids.
Remarks
The ActualData Source's context must be set to "Manual".
Examples var dataApi = ctx.Use<IDataApi>();
var employeeId = dataApi.Add("Employee", candidateObj);
ctx.AttachToDataSource("employeeToEdit", employeeId);
See Also