Skip to main content
Answer

Workflow API

  • July 24, 2023
  • 1 reply
  • 67 views

Chris Hardgrove
Jr Varsity I

Hello.  Is an extension project required for use in the workflow API?  I don’t see this question answered in the training class, although it’s example uses the extension library.  When building a workflow code file for use in the website App_Runtime folder (instead of a .Net library), an error happens in a transition.  I’m unsure if the ambiguity is legitimate or not.

 

 

Best answer by darylbowman

No, I’m using it in a non-extension library situation.

 

The start of my graph extension looks like this:

...

using PX.Data.WorkflowAPI;

namespace CaseWorkflow
{
using static PX.Data.WorkflowAPI.BoundedTo<CRCaseMaint, CRCase>;

public class CaseWorkflow_CRCaseMaint_WorkflowExt : PXGraphExtension<PX.Objects.CR.Workflows.CaseWorkflow, CRCaseMaint>
{
...

 

1 reply

darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • July 24, 2023

No, I’m using it in a non-extension library situation.

 

The start of my graph extension looks like this:

...

using PX.Data.WorkflowAPI;

namespace CaseWorkflow
{
using static PX.Data.WorkflowAPI.BoundedTo<CRCaseMaint, CRCase>;

public class CaseWorkflow_CRCaseMaint_WorkflowExt : PXGraphExtension<PX.Objects.CR.Workflows.CaseWorkflow, CRCaseMaint>
{
...