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

Sleep function #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion snippets/tm1.process.snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
"SetOutputCharacterSet": { "prefix": "SetOutputCharacterSet","body": "SetOutputCharacterSet( ${1:sFileName}, ${2:sCharacterSet} )", "description": "SetOutputCharacterSet lets you specify the character set to be used when writing to a text file using TextOutput in a TurboIntegrator proces." },
"SetOutputEscapeDoubleQuote": { "prefix": "SetOutputEscapeDoubleQuote","body": "SetOutputEscapeDoubleQuote( ${1:sFileName}, ${2:bNumber} )", "description": "SetOutputEscapeDoubleQuote allows you to escape double quotes that appear in element names or data values when exporting a cube view to a .csv file." },
"SetUseActiveSandboxProperty": { "prefix": "SetUseActiveSandboxProperty","body": "SetUseActiveSandboxProperty( ${1:bProperty} )", "description": "SetUseActiveSandboxProperty controls whether a process reads and writes cube data to the base data or to the user's active sandbox. The default is for processes to read and write to the base data." },
"SLEEP": { "prefix": "SLEEP","body": "SLEEP( ${1:nMilliseconds} )", "description": "SLEEP will pause TI execution for specified milliseconds without consuming CPU; 1,000 milliseconds in 1 second e.g. SLEEP(5000) to sleep for 5 seconds" },
"StringGlobalVariable": { "prefix": "StringGlobalVariable","body": "StringGlobalVariable( ${1:sVariableName} )", "description": "Use this function to define a string global variable." },
"StringToNumber": { "prefix": "StringToNumber","body": "StringToNumber( ${1:sConvertValue} )", "description": "StringToNumber converts a string to a number" },
"StringToNumberEx": { "prefix": "StringToNumberEx","body": "StringToNumberEx( ${1:sConvertValue}, ${2:sDecimalSep}, ${3:sThousandsSep} )", "description": "StringToNumberEx converts a string to a number" },
Expand Down Expand Up @@ -438,4 +439,4 @@
"SUBST": { "prefix": "SUBST","body": "SUBST( ${1:sString}, ${2:nBeginning}, ${3:nLength} )", "description": "SUBST returns a substring of a given string." },
"TRIM": { "prefix": "TRIM","body": "TRIM( ${1:sString} )", "description": "TRIM returns the result of trimming any leading and trailing blanks from a string." },
"UPPER": { "prefix": "UPPER","body": "UPPER( ${1:sString} )", "description": "UPPER converts a text string to upper case." }
}
}
4 changes: 2 additions & 2 deletions syntaxes/tm1.process.syntax.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{"name": "keyword.math.tm1process", "match": "(?i)\\b(ABS|ACOS|ASIN|ATAN|COS|EXP|INT|ISUND|LN|LOG|MAX|MIN|MOD|RAND|ROUND|ROUNDP|SIGN|SIN|SQRT|TAN)\\b(?=\\()"},
{"name": "keyword.misc.tm1process", "match": "(?i)\\b(AddInfoCubeRestriction|DataSourceSAPUsingRoleAuths|DataSourceSAPUsingTexts|ExecuteJavaN|ExecuteJavaS|Expand|NumberToString|NumberToStringEx|RefreshMdxHierarchy|StringToNumber|StringToNumberEx)\\b(?=\\()"},
{"name": "keyword.odbc.tm1process", "match": "(?i)\\b(ODBCClose|ODBCOpen|ODBCOPENEx|ODBCOutput|SetODBCUnicodeInterface)\\b(?=\\()"},
{"name": "keyword.process.tm1process", "match": "(?i)\\b(ExecuteCommand|ExecuteProcess|GetProcessErrorFileDirectory|GetProcessErrorFilename|GetProcessName|ItemReject|ItemSkip|ProcessBreak|ProcessError|ProcessExists|ProcessExitByBreak|ProcessExitByChoreQuit|ProcessExitByChoreRollback|ProcessExitByChoreRollback|ProcessExitByProcessRollback|ProcessExitByProcessRollback|ProcessExitByQuit|ProcessExitMinorError|ProcessExitNormal|ProcessExitOnInit|ProcessExitSeriousError|ProcessExitWithMessage|ProcessQuit|ProcessRollback|RunProcess|Synchronized)\\b(?=\\()"},
{"name": "keyword.process.tm1process", "match": "(?i)\\b(ExecuteCommand|ExecuteProcess|GetProcessErrorFileDirectory|GetProcessErrorFilename|GetProcessName|ItemReject|ItemSkip|ProcessBreak|ProcessError|ProcessExists|ProcessExitByBreak|ProcessExitByChoreQuit|ProcessExitByChoreRollback|ProcessExitByChoreRollback|ProcessExitByProcessRollback|ProcessExitByProcessRollback|ProcessExitByQuit|ProcessExitMinorError|ProcessExitNormal|ProcessExitOnInit|ProcessExitSeriousError|ProcessExitWithMessage|ProcessQuit|ProcessRollback|RunProcess|SLEEP|Synchronized)\\b(?=\\()"},
{"name": "keyword.reservation.tm1process", "match": "(?i)\\b(CubeDataReservationAcquire|CubeDataReservationGet|CubeDataReservationGetConflicts|CubeDataReservationRelease|CubeDataReservationReleaseAll|CubeDRAcquire|CubeDRGet|CubeDRGetConflicts|CubeDRRelease|CubeDRReleaseAll)\\b(?=\\()"},
{"name": "keyword.rules.tm1process", "match": "(?i)\\b(CubeProcessFeeders|CubeRuleAppend|CubeRuleDestroy|DeleteAllPersistentFeeders|ForceSkipCheck|RuleLoadFromFile)\\b(?=\\()"},
{"name": "keyword.sandbox.tm1process", "match": "(?i)\\b(GetUseActiveSandboxProperty|ServerActiveSandboxGet|ServerActiveSandboxSet|ServerSandboxClone|ServerSandboxCreate|ServerSandboxDiscardAllChanges|ServerSandboxesDelete|ServerSandboxExists|ServerSandboxGet|ServerSandboxListCountGet|ServerSandboxMerge|SetUseActiveSandboxProperty)\\b(?=\\()"},
Expand Down Expand Up @@ -85,4 +85,4 @@
{"name": "punctuation.terminator.statement.tm1process", "match": "\\;"}
]

}
}