Invoke Method
Calls a public method of an object, or a static method of a type, and returns its result.
Behaviour
Risk: High · Idempotent: No · Safe to retry: No · Recovery: Not replayed after a crash
Package System activities VeloPhex.System.Activities 0.7.1-rc.12 · Supported (Core profile) · type id velophex.system.invokeMethod
Properties#
Input#
Target Object#
TargetObject · Object · Optional · Default: Not specified in package metadata
The object whose instance method is called.
Target Type#
TargetType · String · Optional · Default: Not specified in package metadata
In place of Target Object: the full name of the type whose static method is called.
Method Name#
MethodName · String · Required · Default: Not specified in package metadata
The method's name.
Parameters#
Parameters · Object[] · Optional · Default: Not specified in package metadata
The method's parameters, in order, e.g. new object[] { "a", 2 }.
Output#
Result#
Result · Object · Output
What the method returned; null for a void method.
Rules#
- Set only one of: Target Object, Target Type.
Retry and risk#
This activity is not marked safe to retry: if it fails partway, check whether its work already happened before running it again. If a run is interrupted and the outcome of a step is unknown, the step is never retried automatically (what to do). How activities declare this: characteristics, retries and risk.
Every activity also has the engine's common properties: Timeout and Continue On Error.
Related activities#
Generated from VeloPhex.System.Activities 0.7.1-rc.12. Category: Invoke. Keywords: method, call, invoke, reflection, static, function.
Properties
Input
Output
Rules
Retry and risk
Related activities