RuntimeServiceCreateGlobalList Method |
Namespace: Advantys.Workflow.Web.Services.Processes.Runtime
Optional Parameters.
These parameters can be used in the query string or as parameters of the Headers object in the RuntimeService class instance. See example below.
ReplaceIfExists (bool) | Sets whether or not to replace a global list with the same name. |
<GlobalList> <Name>MyList</Name> <ParticipantName>DEFAULT_PROCESSMANAGER</ParticipantName> <Content> <Databind DatabindConnectionMode="none"> </Databind> <Headers> <Header Name="col1" Type="TEXT">Col1</Header> <Header Name="col2" Type="TEXT">Col2</Header> </Headers> <Items> <Item> <Column Name="col1"> <Value Lang="default">value1-1</Value> </Column> <Column Name="col2"> <Value Lang="default">value2-1</Value> </Column> </Item> <Item> <Column Name="col1"> <Value Lang="default">value1-2</Value> </Column> <Column Name="col2"> <Value Lang="default">value2-2</Value> </Column> </Item> </Items> </Content> </GlobalList>
<GlobalList> <Name>MyList2</Name> <ParticipantName></ParticipantName> <Content> <Databind DatabindConnectionMode="select"> <DatabindConnectionName>MainDbSource2</DatabindConnectionName> <DatabindSelectCommand>select top 10 * from users</DatabindSelectCommand> </Databind> </Content> </GlobalList>
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService(); RuntimeServiceWebService.GlobalListHeader myGlobalListHeader= new RuntimeServiceWebService.GlobalListHeader(); myRuntimeService.GlobalListHeaderValue = myGlobalListHeader; myGlobalListHeader.ReplaceIfExists = replaceIfExists; string createdGlobalListId = myRuntimeService.CreateGlobalList(listDefinition);