C# Class LinnworksAPI.RulesEngineMethods

Afficher le fichier Open project: LinnSystems/LinnworksNetSDK

Méthodes publiques

Méthode Description
AddAction ( ActionWeb action, String ApiToken, String ApiServer ) : ActionWeb
CheckConditionNameExists ( Int32 fkRuleId, Int32 fkConditionId, Int32 excludeConditionId, String conditionName, String ApiToken, String ApiServer ) : System.Boolean
CopyAction ( Int32 pkRuleId, Int32 targetParentConditionId, Int32 pkActionId, String ApiToken, String ApiServer ) : RuleAction
CopyCondition ( Int32 pkRuleId, Int32 targetParentConditionId, Int32 pkConditionId, System.Boolean includeChildren, System.Boolean includeActions, String ApiToken, String ApiServer ) : RuleConditionHeader
CreateDraftFromExisting ( Int32 pkRuleId, String ApiToken, String ApiServer ) : Int32
CreateNewCondition ( ConditionHeaderBasic header, String ApiToken, String ApiServer ) : RuleConditionHeader
CreateNewDraft ( String ruleName, RuleSetType type, String ApiToken, String ApiServer ) : RuleHeaderBasic
CreateNewDraftFromExisting ( Int32 pkRuleId, String ruleName, String ApiToken, String ApiServer ) : RuleHeaderBasic
DeleteAction ( Int32 pkActionId, String ApiToken, String ApiServer ) : void
DeleteCondition ( Int32 pkConditionId, String ApiToken, String ApiServer ) : void
DeleteRuleById ( Int32 pkRuleId, String ApiToken, String ApiServer ) : void
GetActionOptions ( ActionType type, String ApiToken, String ApiServer ) : List
GetActionTypes ( RuleSetType type, String ApiToken, String ApiServer ) : List
GetConditionWeb ( Int32 pkConditionId, String ApiToken, String ApiServer ) : ConditionHeaderBasic
GetEvaluationFields ( RuleSetType type, String ApiToken, String ApiServer ) : List
GetEvaluatorTypes ( String ApiToken, String ApiServer ) : List
GetKeyOptions ( RuleSetType type, String fieldName, String ApiToken, String ApiServer ) : List
GetMultiKeyOptions ( RuleSetType type, List fieldNames, String ApiToken, String ApiServer ) : List
GetMultiOptions ( RuleSetType type, List fieldKeys, String ApiToken, String ApiServer ) : List
GetOptions ( String fieldName, RuleSetType type, String key, String ApiToken, String ApiServer ) : List
GetRequiredFieldsByRuleId ( Int32 pkRuleId, String ApiToken, String ApiServer ) : RulesFields
GetRequiredFieldsByType ( RuleSetType type, String ApiToken, String ApiServer ) : RulesFields
GetRuleConditionNodes ( Int32 pkRuleId, String ApiToken, String ApiServer ) : List
GetRules ( String ApiToken, String ApiServer ) : List
GetRulesByType ( RuleSetType type, String ApiToken, String ApiServer ) : List
GetValuesFromExisting ( Int32 pkRuleId, Object id, String ApiToken, String ApiServer ) : List
SaveConditionChanges ( ConditionHeaderBasic conditionHeader, String ApiToken, String ApiServer ) : void
SetConditionEnabled ( Int32 pkConditionId, System.Boolean enabled, String ApiToken, String ApiServer ) : void
SetDraftLive ( Int32 pkRuleId, String ApiToken, String ApiServer ) : Int32?
SetRuleEnabled ( Int32 pkRuleId, System.Boolean enabled, String ApiToken, String ApiServer ) : void
SetRuleName ( Int32 pkRuleId, String ruleName, String ApiToken, String ApiServer ) : void
SwapConditions ( Int32 pkConditionId1, Int32 pkConditionId2, String ApiToken, String ApiServer ) : void
SwapRules ( Int32 pkRuleId1, Int32 pkRuleId2, String ApiToken, String ApiServer ) : void
TestEvaluateRule ( List testValues, Int32 pkRuleId, String ApiToken, String ApiServer ) : RuleEvaluationResult
UpdateAction ( ActionWeb action, String ApiToken, String ApiServer ) : void

Method Details

AddAction() public static méthode

public static AddAction ( ActionWeb action, String ApiToken, String ApiServer ) : ActionWeb
action ActionWeb
ApiToken String
ApiServer String
Résultat ActionWeb

CheckConditionNameExists() public static méthode

public static CheckConditionNameExists ( Int32 fkRuleId, Int32 fkConditionId, Int32 excludeConditionId, String conditionName, String ApiToken, String ApiServer ) : System.Boolean
fkRuleId System.Int32
fkConditionId System.Int32
excludeConditionId System.Int32
conditionName String
ApiToken String
ApiServer String
Résultat System.Boolean

CopyAction() public static méthode

public static CopyAction ( Int32 pkRuleId, Int32 targetParentConditionId, Int32 pkActionId, String ApiToken, String ApiServer ) : RuleAction
pkRuleId System.Int32
targetParentConditionId System.Int32
pkActionId System.Int32
ApiToken String
ApiServer String
Résultat RuleAction

CopyCondition() public static méthode

public static CopyCondition ( Int32 pkRuleId, Int32 targetParentConditionId, Int32 pkConditionId, System.Boolean includeChildren, System.Boolean includeActions, String ApiToken, String ApiServer ) : RuleConditionHeader
pkRuleId System.Int32
targetParentConditionId System.Int32
pkConditionId System.Int32
includeChildren System.Boolean
includeActions System.Boolean
ApiToken String
ApiServer String
Résultat RuleConditionHeader

CreateDraftFromExisting() public static méthode

public static CreateDraftFromExisting ( Int32 pkRuleId, String ApiToken, String ApiServer ) : Int32
pkRuleId System.Int32
ApiToken String
ApiServer String
Résultat System.Int32

CreateNewCondition() public static méthode

public static CreateNewCondition ( ConditionHeaderBasic header, String ApiToken, String ApiServer ) : RuleConditionHeader
header ConditionHeaderBasic
ApiToken String
ApiServer String
Résultat RuleConditionHeader

CreateNewDraft() public static méthode

public static CreateNewDraft ( String ruleName, RuleSetType type, String ApiToken, String ApiServer ) : RuleHeaderBasic
ruleName String
type RuleSetType
ApiToken String
ApiServer String
Résultat RuleHeaderBasic

CreateNewDraftFromExisting() public static méthode

public static CreateNewDraftFromExisting ( Int32 pkRuleId, String ruleName, String ApiToken, String ApiServer ) : RuleHeaderBasic
pkRuleId System.Int32
ruleName String
ApiToken String
ApiServer String
Résultat RuleHeaderBasic

DeleteAction() public static méthode

public static DeleteAction ( Int32 pkActionId, String ApiToken, String ApiServer ) : void
pkActionId System.Int32
ApiToken String
ApiServer String
Résultat void

DeleteCondition() public static méthode

public static DeleteCondition ( Int32 pkConditionId, String ApiToken, String ApiServer ) : void
pkConditionId System.Int32
ApiToken String
ApiServer String
Résultat void

DeleteRuleById() public static méthode

public static DeleteRuleById ( Int32 pkRuleId, String ApiToken, String ApiServer ) : void
pkRuleId System.Int32
ApiToken String
ApiServer String
Résultat void

GetActionOptions() public static méthode

public static GetActionOptions ( ActionType type, String ApiToken, String ApiServer ) : List
type ActionType
ApiToken String
ApiServer String
Résultat List

GetActionTypes() public static méthode

public static GetActionTypes ( RuleSetType type, String ApiToken, String ApiServer ) : List
type RuleSetType
ApiToken String
ApiServer String
Résultat List

GetConditionWeb() public static méthode

public static GetConditionWeb ( Int32 pkConditionId, String ApiToken, String ApiServer ) : ConditionHeaderBasic
pkConditionId System.Int32
ApiToken String
ApiServer String
Résultat ConditionHeaderBasic

GetEvaluationFields() public static méthode

public static GetEvaluationFields ( RuleSetType type, String ApiToken, String ApiServer ) : List
type RuleSetType
ApiToken String
ApiServer String
Résultat List

GetEvaluatorTypes() public static méthode

public static GetEvaluatorTypes ( String ApiToken, String ApiServer ) : List
ApiToken String
ApiServer String
Résultat List

GetKeyOptions() public static méthode

public static GetKeyOptions ( RuleSetType type, String fieldName, String ApiToken, String ApiServer ) : List
type RuleSetType
fieldName String
ApiToken String
ApiServer String
Résultat List

GetMultiKeyOptions() public static méthode

public static GetMultiKeyOptions ( RuleSetType type, List fieldNames, String ApiToken, String ApiServer ) : List
type RuleSetType
fieldNames List
ApiToken String
ApiServer String
Résultat List

GetMultiOptions() public static méthode

public static GetMultiOptions ( RuleSetType type, List fieldKeys, String ApiToken, String ApiServer ) : List
type RuleSetType
fieldKeys List
ApiToken String
ApiServer String
Résultat List

GetOptions() public static méthode

public static GetOptions ( String fieldName, RuleSetType type, String key, String ApiToken, String ApiServer ) : List
fieldName String
type RuleSetType
key String
ApiToken String
ApiServer String
Résultat List

GetRequiredFieldsByRuleId() public static méthode

public static GetRequiredFieldsByRuleId ( Int32 pkRuleId, String ApiToken, String ApiServer ) : RulesFields
pkRuleId System.Int32
ApiToken String
ApiServer String
Résultat RulesFields

GetRequiredFieldsByType() public static méthode

public static GetRequiredFieldsByType ( RuleSetType type, String ApiToken, String ApiServer ) : RulesFields
type RuleSetType
ApiToken String
ApiServer String
Résultat RulesFields

GetRuleConditionNodes() public static méthode

public static GetRuleConditionNodes ( Int32 pkRuleId, String ApiToken, String ApiServer ) : List
pkRuleId System.Int32
ApiToken String
ApiServer String
Résultat List

GetRules() public static méthode

public static GetRules ( String ApiToken, String ApiServer ) : List
ApiToken String
ApiServer String
Résultat List

GetRulesByType() public static méthode

public static GetRulesByType ( RuleSetType type, String ApiToken, String ApiServer ) : List
type RuleSetType
ApiToken String
ApiServer String
Résultat List

GetValuesFromExisting() public static méthode

public static GetValuesFromExisting ( Int32 pkRuleId, Object id, String ApiToken, String ApiServer ) : List
pkRuleId System.Int32
id Object
ApiToken String
ApiServer String
Résultat List

SaveConditionChanges() public static méthode

public static SaveConditionChanges ( ConditionHeaderBasic conditionHeader, String ApiToken, String ApiServer ) : void
conditionHeader ConditionHeaderBasic
ApiToken String
ApiServer String
Résultat void

SetConditionEnabled() public static méthode

public static SetConditionEnabled ( Int32 pkConditionId, System.Boolean enabled, String ApiToken, String ApiServer ) : void
pkConditionId System.Int32
enabled System.Boolean
ApiToken String
ApiServer String
Résultat void

SetDraftLive() public static méthode

public static SetDraftLive ( Int32 pkRuleId, String ApiToken, String ApiServer ) : Int32?
pkRuleId System.Int32
ApiToken String
ApiServer String
Résultat Int32?

SetRuleEnabled() public static méthode

public static SetRuleEnabled ( Int32 pkRuleId, System.Boolean enabled, String ApiToken, String ApiServer ) : void
pkRuleId System.Int32
enabled System.Boolean
ApiToken String
ApiServer String
Résultat void

SetRuleName() public static méthode

public static SetRuleName ( Int32 pkRuleId, String ruleName, String ApiToken, String ApiServer ) : void
pkRuleId System.Int32
ruleName String
ApiToken String
ApiServer String
Résultat void

SwapConditions() public static méthode

public static SwapConditions ( Int32 pkConditionId1, Int32 pkConditionId2, String ApiToken, String ApiServer ) : void
pkConditionId1 System.Int32
pkConditionId2 System.Int32
ApiToken String
ApiServer String
Résultat void

SwapRules() public static méthode

public static SwapRules ( Int32 pkRuleId1, Int32 pkRuleId2, String ApiToken, String ApiServer ) : void
pkRuleId1 System.Int32
pkRuleId2 System.Int32
ApiToken String
ApiServer String
Résultat void

TestEvaluateRule() public static méthode

public static TestEvaluateRule ( List testValues, Int32 pkRuleId, String ApiToken, String ApiServer ) : RuleEvaluationResult
testValues List
pkRuleId System.Int32
ApiToken String
ApiServer String
Résultat RuleEvaluationResult

UpdateAction() public static méthode

public static UpdateAction ( ActionWeb action, String ApiToken, String ApiServer ) : void
action ActionWeb
ApiToken String
ApiServer String
Résultat void