How do you pass process variable parameter into an expression

I am trying to pass the value of a process variable into my expression, and the expression is also used in the process model.

Please, see attached image:

The rule - drxxxxStoredProcedureDirDepAggregatedPaymentForDate looks like this:

executestoredprocedure(
  datasourceName: "jdbc/ABC",
  procedureName: "dbo.procCtePaent",
  inputs: {
    {
      name: "date_param",
      value: ""
    }
  }
).result[1]

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to nicholaso0002

    I'm glad to hear you got the surrounding syntax issues worked out.  Though I was getting at something else with my comment here.

    I guess my point here was that if you're calling the same stored procedure in the same way twice, just to check whether it returns empty, then what you should be doing is calling it just once, setting that value into a local variable, and then check that variable to see if it's empty.  There's no reason to call it twice when you only need to call it once.

Children