|
|
|
|
For the code monkeys among us, there is native C# code. All
Metastorm code is now generated C# code, or Metastorm
functions called from this code. You can also create as much of
your own C# code as you wish, and import any DLL files you may
wish to use, of course.
|
|
|
|
You have a full C# editor here
|
|
|
|
And many useful editing tools, including the all-important Script
Validation.
|
|
|
|
You also have Intellisense, as you would expect.
|
|
|
|
What may not be expected, however, is the same facility in all
areas where you can edit Metastorm code.
|
|
|
|
In the Expression Builder you can use Intellisense at any time by
pressing Ctrl-Space.
|
|
|
|
Or it is automatically invoked at appropriate points.
|
|
|
|
It is even available in the properties box fields where
appropriate, making editing very swift indeed.
|
|
|
|
One of the hindrances to code reuse has been the awkward
scripting calls that are required in version 7 and before. This is
now a thing of the past.
|
|
|
|
all C# scripts can be promoted to the Expression Builder and
Visual Scripts Toolbox.
|
|
|
|
You can even add descriptive names for functions and
parameters, as well as helpful hints for the Expression Builder.
|
|
|
|
And in the Visual Script Toolbox
|
|
|
|
Visual Scripts can also be promoted to the Visual Scripts Toolbox.
|
|
|
|
And then used in any Visual Script.
|
|
|
|
Visual Scripts are a very nice way to write Metastorm code.
Effectively they generate C# code by building the statements
from Drag and Drop components.
|
|
|
|
Here you can see the available components.
|
|
|
|
And these are a set of components built into a script. You can
see that certain components allow the nesting of others.
|
|
|
|
You can even collapse containers of other activities to keep
clutter to a minimum.
|
|
|
|
And you can zoom in and out just like the Process Maps.
|
|
|
|
When descriptive comments are added to the activities, the code
is very nicely documented.
|
|
|
|
As shown above, we now have looping within Metastorm code.
This used to have to be handled by writing a script, or by means
of conditional loopback actions.
|
|
|
|
Looping if a basic do while loop.
|
|
|
|
For each allows you to perform activities on a property of any
Business Object. Although a list is accepted, it does not work
with lists as far as we can tell, however.
|
|
|
|
Conditional execution is an If – else if ... else format.
|
|
|
|
Any Activity or container of Activities may be disabled by un-
checking the ‘enabled’ checkbox. This is a neat way to disable
code during development.
|
|
|
|
|
|