Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-registry all functions #153

Merged
merged 4 commits into from
Mar 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions core/mapper/exprmapper/exprmapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ import (

"reflect"

"github.com/TIBCOSoftware/flogo-lib/core/data"
"github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/expression"
"github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/ref"
"github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/json"
"github.com/TIBCOSoftware/flogo-lib/core/data"
"github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/ref"
"github.com/TIBCOSoftware/flogo-lib/logger"

//Pre registry all function for now
_ "github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/function/number/random"
_ "github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/function/string/concat"
_ "github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/function/string/equals"
_ "github.com/TIBCOSoftware/flogo-lib/core/mapper/exprmapper/function/string/length"
)

var log = logger.GetLogger("mapper")
Expand Down Expand Up @@ -178,7 +184,6 @@ func SetAttribute(fieldName string, value interface{}, outputScope data.Scope) e
return nil
}


func RemovePrefixInput(str string) string {
if str != "" && strings.HasPrefix(str, MAP_TO_INPUT) {
//Remove $INPUT for mapTo
Expand All @@ -190,4 +195,3 @@ func RemovePrefixInput(str string) string {
}
return str
}