Versions in this module Expand all Collapse all v0 v0.2.9 Feb 12, 2024 v0.2.8 Feb 12, 2024 Changes in this version + func New(ctx activity.InitContext) (activity.Activity, error) + type Activity struct + func (a *Activity) Eval(ctx activity.Context) (done bool, err error) + func (a *Activity) Metadata() *activity.Metadata + type Input struct + Parameters map[string]interface{} + func (i *Input) FromMap(values map[string]interface{}) error + func (i *Input) ToMap() map[string]interface{} + type Output struct + Error bool + ErrorMessage string + Result map[string]interface{} + func (o *Output) FromMap(values map[string]interface{}) error + func (o *Output) ToMap() map[string]interface{} + type Settings struct + Script string + type VM struct + func NewVM(defaults map[string]interface{}) (vm *VM, err error) + func (vm *VM) EvaluateToBool(condition string) (truthy bool, err error) + func (vm *VM) GetFromVM(name string, object interface{}) (err error) + func (vm *VM) SetInVM(name string, object interface{}) (err error) + func (vm *VM) SetPrimitiveInVM(name string, primitive interface{})