Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Passing an array to a class method on a job command

Question
Jenna Poindexter · Sep 30, 2017

Passing an array to a class method on a job command

hi-

Can someone give me an example of how to JOB a class method that requires an array of values to be passed to it by reference.  

This is what I tried, but am getting compile errors because of the .params

job ##class(%SYSTEM.OBJ.FM2Class).All(.params)::5

Any thoughts on how to accomplish this, the simplest way.  I would like to avoid writing all of this to some global and having to write some wrapper to pick it up and then call the class method, which I certainly could do.  but is this the only way to do it?

#Caché #Compiler

Source URL:https://community.intersystems.com/post/passing-array-class-method-job-command