I’m been trying to add a condition to the workflow of SOShipmentEntry (SO302000) so that it will make other parts of the workflow easier to configure. My code compiles but the condition doesn’t appear within the editor.
I’m guessing that I have a parameter incorrect. I’ve leaned heavily on this post but to no avail.
Can anyone see something obvious?
using PX.Data;
using PX.Data.WorkflowAPI;
using PX.Objects.SO;
using static PX.Data.WorkflowAPI.BoundedTo<PX.Objects.SO.SOShipmentEntry, PX.Objects.SO.SOShipment>;
using PX.Data.BQL;
namespace CustomerOEMods.Workflow
{
public class SOShipmentEntryWorkFlowExt : PXGraphExtension<PX.Objects.SO.SOShipmentEntry_Workflow, SOShipmentEntry_Extension, SOShipmentEntry>
{
public class shipViaPickup : BqlString.Constant<shipViaPickup> { public shipViaPickup() : base("PICKUP") { } }
#region Conditions
public class Conditions : Condition.Pack
{
public Condition IsCustomerPICKUPOrder =>
GetOrCreate(b => b.FromBql<
SOShipment.shipVia.IsEqual<shipViaPickup>>
());
}
#endregion
public override void Configure(PXScreenConfiguration config) => Configure(config.GetScreenConfigurationContext<SOShipmentEntry, SOShipment>());
public virtual void Configure(WorkflowContext<SOShipmentEntry, SOShipment> context)
{
var conditions = context.Conditions.GetPack<SOShipmentEntryWorkFlowExt.Conditions>();
var baseConditions = context.Conditions.GetPack<PX.Objects.SO.SOShipmentEntry_Workflow.Conditions>();
}
}
}

