Publish Activity

Build 1501 on 14/Nov/2017  This topic last edited on: 25/Aug/2014, at 13:06

The interactive activity Publish has a Boolean property ValidateBeforeScheduling documented as follow:

true in order to apply the validation rules of the template (attribute pubTemplate.validateObjXslt) BEFORE scheduling the publication. false otherwise.

If set to true and if the validation fails, then it is not possible to go forward to the next activity and no publish command is scheduled. Note that in everycase, the validation rules are applied when the publish command is executed too.

Default: false.

Remarks: If IsScheduled is false, then ValidateBeforeScheduling is ignored.

The standard worfklow wf_publish.xml accepts the parameter validateBeforeScheduling, which value (when provided) is mapped to the ValidateBeforeScheduling property of the Publish activity.

Example of configuration:

  <menuItem

    text="Publish"

    iconUrl="do.ashx?Cmd=Icon&Name=tlb_Publish&Size=16&Default=t"

    navigateUrl="javascript:this.menuWebPart.showDialog('WFForm.aspx?wf=publish&amp;Ids='+this.menuWebPart.selectedIdList()+'&amp;pars=prompt:true;isScheduled:true;validateBeforeScheduling:true',null,640,500);"

    enable="Some"/>