SELECTEER NewTemplate.ProcessSequence, NewTemplate.MasterProcessID, NewTemplate.WorkFlowProcessID
VAN (
SELECTEER tblWorkFlowTemplates.MasterProcessID, tblWorkFlowAssignmentsDetail.WorkFlowAssignmentID, tblWorkFlowTemplates.ProcessSequence,
tblWorkFlowTemplates.TemplateMasterID, tblWorkFlowAssignmentsDetail.Completed
VAN tblWorkFlowAssignmentsDetail BINNEN TREED toe tblWorkFlowTemplates
tblWorkFlowAssignmentsDetail.WorkFlowProcessID = tblWorkFlowTemplates.WorkFlowProcessID
WAAR tblWorkFlowAssignmentsDetail.WorkFlowAssignmentID = @mWorkFlowAssignmentID
ORDE DOOR tblWorkFlowTemplates.ProcessSequence
) CurrentTemplate
HET RECHT TREEDT TOE (
SELECTEER tblWorkFlowTemplates.MasterProcessID, tblWorkFlowTemplates.ProcessSequence,
tblWorkFlowTemplates.TemplateMasterID, tblWorkFlowTemplates.WorkFlowProcessID
Van tblWorkFlowTemplates
WAAR tblWorkFlowTemplates.TemplateMasterID = @WorkFlowTemplate
ORDE DOOR tblWorkFlowTemplates.ProcessSequence
) NewTemplate OP CurrentTemplate.MasterProcessID = NewTemplate.MasterProcessID
WAAR CurrentTemplate.MasterProcessID OF CurrentTemplate.Completed = 0 Ongeldig is
ORDE DOOR NewTemplate.ProcessSequence
|