Skip to main content Help and docs APIs .NET Management API Model 1
using Zengenti.Contensis.Management.Workflow.Basic;
Publish 1
2
3
public static void Publish(this Workflow workflow)
{
}
1
2
// Publish the version of the entry.
entry.Workflow.Publish();
PublishAsync 1
2
3
public async Task PublishAsync(this Workflow workflow)
{
}
1
2
// Publish the version of the entry.
await entry.Workflow.PublishAsync();
1
using Zengenti.Contensis.Management.Workflow.Approval;
Submit 1
2
3
public static void Submit(this Workflow workflow, string message = null)
{
}
1
2
// Submit the entry for approval.
entry.Workflow.Submit("I've updated the 2nd paragraph to make it clearer");
SubmitAsync 1
2
3
public static async Task SubmitAsync(this Workflow workflow, string message = null)
{
}
1
2
// Submit the entry for approval asynchronously.
await entry.Workflow.SubmitAsync("I've updated the 2nd paragraph to make it clearer");
Approve 1
2
3
public void Approve(this Workflow workflow)
{
}
1
2
// Approve the entry for publishing.
entry.Workflow.Approve();
ApproveAsync 1
2
3
public async Task ApproveAsync(this Workflow workflow)
{
}
1
2
// Approve the entry instance asynchronously.
await entry.Workflow.ApproveAsync();
Decline 1
2
3
public void Decline(this Workflow workflow, string message = null)
{
}
1
2
// Decline the entry submission.
entry.Workflow.Decline("There are multiple spelling mistakes in the opening paragraph");
DeclineAsync 1
2
3
public async Task DeclineAsync(this Workflow workflow, string message)
{
}
1
2
// Decline the entry submission asynchronously.
await entry.Workflow.DeclineAsync("I've updated the 2nd paragraph to make it clearer");
Revoke 1
2
3
public void Revoke(this Workflow workflow)
{
}
1
2
// Revoke the entry submission.
entry.Workflow.Revoke();
RevokeAsync 1
2
3
public async Task RevokeAsync(this Workflow workflow)
{
}
1
2
// Revoke the entry submission asynchronously.
await entry.Workflow.RevokeAsync();
1
2
using Zengenti.Contensis.Management.Workflow.Approval;
using Zengenti.Contensis.Management.Workflow.Basic;
Unpublish 1
2
3
public void Unpublish(this Workflow workflow, bool unpublishAll = false)
{
}
1
2
3
4
5
// Unpublish the current entry.
entry.Workflow.Unpublish();
// Unpublish all of the language variations for this entry.
entry.Workflow.Unpublish(true);
UnpublishAsync 1
2
3
public async Task UnpublishAsync(this Workflow workflow, bool unpublishAll = false)
{
}
1
2
3
4
5
// Unpublish the current entry.
await entry.Workflow.UnpublishAsync();
// Unpublish all of the language variations for this entry.
await entry.Workflow.UnpublishAsync(true);