protected async Task <ActivityPayload> AddAndConfigureChildActivity(Guid parentActivityId, ActivityTemplateDTO activityTemplate, string name = null, string label = null, int?order = null) { //assign missing properties label = string.IsNullOrEmpty(label) ? activityTemplate.Label : label; name = string.IsNullOrEmpty(name) ? activityTemplate.Label : label; return(await HubCommunicator.CreateAndConfigureActivity(activityTemplate.Id, name, order, parentActivityId)); }
private async Task <ActivityPayload> CreateConvertCratesActivity(ActivityTemplateDTO template, ActivityPayload parentAction) { return(await HubCommunicator.CreateAndConfigureActivity(template.Id, "Convert Crates", 2, parentAction.Id)); }
private async Task <ActivityPayload> CreateStoreFileActivity(ActivityTemplateDTO template, ActivityPayload parentAction) { return(await HubCommunicator.CreateAndConfigureActivity(template.Id, "Store File", 3, parentAction.Id)); }
private async Task <ActivityPayload> CreateGetDocuSignTemplateActivity(ActivityTemplateDTO template, ActivityPayload parentAction) { var authTokenId = Guid.Parse(AuthorizationToken.Id); return(await HubCommunicator.CreateAndConfigureActivity(template.Id, "Get Docusign Template", 1, parentAction.Id, false, authTokenId)); }