How to retrieve the workflow configuration that will be used.

24 03 2010

If you every have the need to retrieve which workflow configuration is likely to be kicked off for a record e.g. from the canSubmitToWorkflow() method on your form, you can do the following:

public boolean canSubmitToWorkflow()
 boolean ret;
 WorkflowConfigurationTable  configTable;
 configTable = this.loadWorkflowConfiguration();
if (configTable.TemplateName=='MyTemplate')
    ret = MyTemplateWorkflowHelper::canSubmit(record);
    ret = YourTemplateWorkflowHelper::canSubmit(record);

 return ret;




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: