Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Created February 28, 2022 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianMRO/19cfdcb260d56c40ec4a73ee636da9ad to your computer and use it in GitHub Desktop.
Save BrianMRO/19cfdcb260d56c40ec4a73ee636da9ad to your computer and use it in GitHub Desktop.
Workflow - Statuses Example
public static class Statuses
{
public class ListAttribute : PXStringListAttribute
{
public ListAttribute() : base(
new[]
{
Pair(Hold, PX.Objects.EP.Messages.Hold),
Pair(Open, PX.Objects.EP.Messages.Open),
Pair(Complete, PX.Objects.EP.Messages.Complete),
})
{ }
}
public const string Initial = "_";
public const string Hold = "H";
public const string Open = "O";
public const string Complete = "C";
public class hold : PX.Data.BQL.BqlString.Constant<hold> { public hold() : base(Hold) { } }
public class open : PX.Data.BQL.BqlString.Constant<open> { public open() : base(Open) { } }
public class complete : PX.Data.BQL.BqlString.Constant<complete> { public complete() : base(Complete) { } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment