![]() ![]() The parameter date1 and date2 are strings representing dates. This macro will compare two dates and return the difference in seconds between them. ResultFormat: The format you want for the final date/timeĮxample: %DATE_CHANGE % will give '24 / 12-2017 ' %DATE_COMPARE% Unit: one of the following: 'day', 'hour', 'minute' or 'second'Īmount: number of 'unit' to be added or deducted %DATE_CHANGE%įormat: The format that 'date' has, like yyyy-MM-dd, see% D% for all formats If the first parameter starts with a plus sign or minus sign the specified number of days will be added or subtracted from the current date before the result is calculated. in the year 2006, yyyy would result in 2006 while yy gives 06. The number of each character determines the result date string, e.g. The table below shows how to get a certain format. The format may contain special characters such as dot (.), comma (,) (NOTE: if a comma is to be used as separator it must be escaped with a '%' in order to be handled correctly) and hyphen (-). If is specified the result will be in the specified format. In the simple form, returns the current date in the format yyyy-MM-dd. Will return the character that has the unicode decimal number. This expression is only valid if the left and right component are numbers.Ĭhecks if the left and right components are equalĬhecks if the left and right components differ. The expression must contain one (the first occurrence is taken) of the following mathematical expression Expression If the expression is false the text is parsed and returned. If the expression is evaluated to true, the text (which may contain other macros) is parsed and returned. The parameter which is evaluated must be a valid expression, see below. This macro is evaluating a condition and will return different values depending on the condition result. Using the macro %BUCKET_LIST_REMOVE_DUPLCIATES% will change the items in the bucket, resulting in the following items: news, sports, ads %CASE% The macro will not return anything, it will only remove all the duplicate entries in the given bucket value.Įxample: If the bucket key paper-list contains a result list from database action and has the following items: news, sports, news, ads. This macro will work on a bucket list (e.g. Note: If you want to use a comma (,) as the delimiter, You must use the comma macro %. Using the macro %BUCKET_LIST% will result in the following string: news#sports#ads This macro will take a bucket value, regard this value as a list of items (for example from the special -list bucket key created in the database action) and join these items with the specified delimiter.Įxample: If the bucket key paper-list contains a result list from database action and has the following items: news, sports, ads. This is a macro that will join a list to a single string with a certain delimiter. The returned list is a comma separated list of file names. The value in the bucket has to be a list of files (see different actions for more information what they put into the bucket). If is equal to 'true' then the names will only include the files, if 'false' the names will include files and folders. ![]() This will return the names of files that are present in the object bucket with the key. If is equal to 'true' then the count will only include the files, if 'false' the count will include files and folders. This will return the number of files that are present in the object bucket with the key. Note: This bucket is different from the Workflow bucket which may be used with the macro %Workflow_BUCKET%. The Workflow itself also puts some values in this bucket before any action is executed. See the documentation for different actions to see what they put in the bucket. The is the key that previous action has used to put the value in the bucket. This can for example be useful in an action to get a value from another action that has been invoked before the current action. the object that is currently being handled). Gets a value from the object’s bucket (i.e. The path argument is the full path to the file to encode. This will take a file input and create a Base64-encoded string from the content. The optional encoding may be used if the source text is in a specific format. This will take a text and make a base64 encoded text from it. The parameter key differs for each container. In the container of the running application, servlet, or applet there are some internal parameters which may be called with this macro. The name of the action in the current context where the macro is evaluated. Special macro that will return a single percent character '%'. Special macro that will return a single comma character ','. ![]() ![]() Symbol A B C D E F H I J L M N P R S T U W X Z %, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |