☁️ Can I Find Out What the Server is Doing?

Ok, this is a confusing one (for me), so let me explain. Also, I’m cloud.

I am using Planning Workbench to create a Job.
Using Dev Tools, I can see that the method being called is CreateJobPWB.
The method is just sending Parameters and no datasets.
I’m assuming that all logic is happening server side.
I put BPMs on Pre and Post Erp.BO.JobEntry.Update to try and see the dataset and none of them fired.

Is there anything I can do to try and figure out what is happening? Even if I figure it out, is there anyway I could even interact with the methods?

Confused Hanna Barbera GIF by Warner Archive

The guts of CreateJobPWB is in an internal assembly. Also, when called it disables triggers.

  1. Initial setup:
  • Takes input parameters and initializes output parameters (opCreatedJobNum and opErrMsg)
  • Validates that required system and part suggestion records exist
  • Performs checks to prevent duplicate job creation
  1. Background processing check:
  • If ipBackground is true, it stores the job creation request in a local table for later processing and returns immediately
  • This allows job creation to happen asynchronously in a background process
  1. Main job creation logic (if not background processing):
  • Branches into different job creation paths based on the demand type:
    • Order Demand: If PartSug.OrderNum > 0, creates job from an order (calls OrderDemand)
    • Material Demand: If PartSug.JobSeq > 0, creates job from material requirements (calls MtlDemand)
    • Job Demand: If PartSug.JobNum is not empty, creates job from another job (calls JobDemand)
    • Stock Demand: Otherwise, creates job for stock (calls StockDemand)
  1. Cleanup:
  • For stock demand, it deletes the PartSug record after job creation
  • In all cases, it ensures database triggers are re-enabled before exiting
3 Likes

Thanks @Chris_Conn , appreciate the assist.

Also, because you mentioned it disables triggers, I’m assuming there is nothing I can do to interrupt the methods. Just want to clarify that.

1 Like

That’s just to say, you wont see any triggers firing on any tables - so you might expect a sledgehammer DataDir on JobHead should fire, but it wont :frowning:

1 Like