Skip to main content

Timeline for Running Apex script on the fly

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Jun 24, 2013 at 21:13 comment added Robert Harper I came from writing a dialer and we had a generic state machine that would read in steps that would have simple next, then, and else steps. These could be overwritten at run time with logic from scripting in the step that could handle custom input from a user, inter process communication, and other values you could test. I'm thinking of something similar to write flow charts with Apex and add actions to the tree and elements based on input as well as being able to store the current state and return to where you left off.
Jun 24, 2013 at 20:40 comment added Doug B So you're effectively going to have to call in through the API ExecuteAnonymous from the page in response to a user event with a payload of apex code which has come from a field? That should work... although I am intrigued what problem you are trying to solve that requires this! Good luck :)
Jun 24, 2013 at 20:15 comment added Robert Harper Sorry, I wasn't looking for something I could run test code or test SOQL queries. I was hoping for a way to load some Apex code that could be loaded from a field and then run at run time. It looks like JavaScript might be the best way to do this.
Jun 21, 2013 at 22:32 history answered Doug B CC BY-SA 3.0