Operation name | Description | Example |
---|---|---|
Date | ||
Timestamp | The operation returns current system time in milliseconds as a string type value. It takes no parameters. | Result = “1392798008000” |
FormatDate | The operation converts a date and time given in milliseconds to a human readable format. The operation takes two parameters:
The result of this operation is a string type value. | Date = “1392798008000” Format = “yyyy.MM.dd G 'at' Result = “2014.02.19 AD at |
ParseDate | The operation converts a date and time in a human readable format to milliseconds. In other words, the operation reverses the result of the FormatDate operation (it returns the value that can be the Date parameter for a FormatDate operation). The operation takes two parameters:
The result of this operation is a string type value. | Format = “yyyy.MM.dd G 'at' Formatted Date = Result = “1392798008000” |
Collection | ||
TypeTest | The operation tests, whether the type of an element matches a given type or stereotype. If the types matches, it returns true, and if they not – false. You can also use this operation to check, if an element is an instance of a given classifier. The operation takes three parameters:
The TypeTest operation can be used in the Filter operation as the condition. For this, click the Use as Condition of a new Filter operation button on the Type Test operation specification panel. | Element = class Profile Result = true The element type matches the given type. |
Element = class Profile Result = true Though the element type does not match the given type, it is its subtype, and in this case subtypes are included in the test. | ||
Element = class Profile Result = false Thought the element type is a subtype of the given type, in this case subtypes are not included in the test. | ||
Filter | The operation analyses given collection of elements (one by one) and returns only those elements that meet the specified filter criteria. The operation takes two parameters:
The result of this operation is collection of elements as well. | Input Collection = use case Log in Predicate = TypeTest: Element = Input Collection Result Collection = use case Log in |
InstanceNavigation | The operation finds the needed slot of the given instance and returns one or more values of that slot. The operation takes two parameters:
The result type of this operation matches the type of the property specified as the Navigate Property parameter. | Instance = WN345AB Result = “1999” |
First | The operation finds the first element in a sequence from a specified scope. The operation consist of:
| |
Contains | The operation verifies specified object in given collection and returns Boolean value true if sets contains object, otherwise operation returns value false. The operation consist of:
| Input = |
IsEmpty | The operation determine whether collection is empty, if it is empty, operation returns Boolean value true, otherwise operation returns value false. The operation consist of:
| |
Size | The operation returns the number of elements in collection. The operation consist of:
| |
Intersect | The operation returns the data common to both collections, with no repetitions and in sorted order. The operation consist of:
| C1 = [7 0 5], C2 = [7 1 5], returns C = [5 7]; |
Concat | The operation joins two lists. The List1 and List2 are joined end-to-end. Keeps the order, allows duplicates. The operation consist of:
| |
Get | The operation returns the element at the specified position in collection. The operation consist of:
| |
Map | The operation maps objects from collection to collection of other objects and returns a collection of results in the same order. The operation consist of:
| Input = [1 2 3 4 5], applies operation map with function (Input + 1) returns = [2 3 4 5 6] |
MapFlat | The operation maps objects from collection to collection of other objects. Flattens mapping result if it is a collection. The operation consist of:
| Input = { {1,2}, {3,4}, {5,6} } applies operation MapFlat returns = {1,2,3,4,5,6} |
Reduce | The operation reduce collection using given operation. The operation consist of:
| |
Zip | The operation zips two collections using given zip operation. The operation consist of:
| |
Min | The operation returns minimum value from given collection. The operation consist of:
| |
Max | The operation returns maximum value from given collection. The operation consist of:
| |
AllMatch | The operation checks if all collection elements match given predicate and returns boolean value. The operation consist of:
| |
AnyMatch | The operation checks if all collection elements match given predicate and returns boolean value. The operation consist of:
| |
Logical | ||
And | The logical conjunction operation returns Boolean value true if all parameters are true, in all other cases - operation returns false value. The operation by default takes three parameters:
| |
Or | The logical disjunction operation returns Boolean value true if either or both parameters is true, otherwise operation returns false value. The operation takes these parameters:
| |
Xor | The logical exclusive disjunction operation returns Boolean value true if both parameters differ, otherwise operation returns false value. The operation takes these parameters:
| |
Not | The logical negation operation returns Boolean value true if parameter have value false, and false when parameter have value true. The operation takes one parameter:
| |
Comparison | ||
IfThenElse | The operation returns one or other object depending on condition. The operation consist of:
| |
LessThan | The operation returns true if the left parameter is less than the right parameter (A < B). The operation consist of:
| |
LessThanOrEquals | The operation returns true if the left side parameter is less than or equal to the right parameter (A <= B). The operation consist of:
| |
GreaterThan | The operation returns true if the left parameter is greater than the right parameter (A > B). The operation consist of:
| |
GreaterThanOrEquals | The operation returns true if the left parameter is greater than or equal to the right parameter (A >= B). The operation consist of:
| |
Equals | The operation converts parameters if they are not the same type, then compares them. If parameters are equal, operation returns Boolean value true, otherwise operation returns false. The operation consist of:
| |
NotEquals | The operation converts parameters if they are not the same type, then compares them. If parameters are not equal, operation returns Boolean value true, otherwise operation returns false. The operation consist of:
| |
String | ||
StringConcat | The operation joins two parameters with string values. A and B string values are joined end-to-end. The operation consist of:
| A = Hello B = world! Return = Hello world! |
StringContains | The operation returns Boolean value true, if specified string value is find in specified scope, otherwise. The operation consist of:
| A = o B = world! Return = True |
Other | ||
DiagramTypeTest | The operation returns Boolean value true if project uses specified diagram, otherwise returns value false. The operation consist of:
| Diagram = Use Case Diagram Type = Class Diagram Return = True |
UsageInDiagramsWithSymbols | The operation returns a collection of Diagram elements where a provided element is used in. Searches for usages in diagrams with symbols only. Other diagrams such as Generic Tables, Dependency Matrices, Relationship Maps, etc., are not searched in. This operation performs fast and does not load any diagrams to get the information. The operation consists of:
| |
Deprecated | ||
UsageInDiagrams(deprecated) | Deprecated, use with caution. This operation is very expensive. It not only checks symbol diagrams for elements but also loads and builds generic tables, dependency matrices, relationship maps, etc. It should be best avoided and used only if you understand the possible consequence of building all diagrams in the project. Searches for usages only in all diagrams. The operation consists of:
|