func New(ctx activity.InitContext) (activity.Activity, error) {

	s := &Settings{}
	err := metadata.MapToStruct(ctx.Settings(), s, true)
	if err != nil {
		return nil, err
	}

	ctx.Logger().Debugf("Setting: %s", s.ASetting)

	act := &Activity{} //add aSetting to instance

	return act, nil
}
//New optional factory method, should be used if one activity instance per configuration is desired
New optional factory method, should be used if one activity instance per configuration is desired
// New optional factory method should be used if one activity instance per configuration is desired
func New(ctx activity.InitContext) (activity.Activity, error) {
	s := &Settings{}
	err := metadata.MapToStruct(ctx.Settings(), s, true)
	if err != nil {
		return nil, err
	}
	ctx.Logger().Debugf("Setting: %s", s.ASetting)
	act := &Activity{} 
	return act, nil
}
func New ( ctx activity . InitContext ) ( activity . Activity , error ) { s := & Settings { } err := metadata . MapToStruct ( ctx . Settings ( ) , s , true ) if err != nil { return nil , err } ctx . Logger ( ) . Debugf ( " " , s . ASetting ) act := & Activity { } return act , nil }
New optional factory method, should be used if one activity instance per configuration is desired
New optional factory method should be used if one activity instance per configuration is desired
//add aSetting to instance