How to display entry&exit point in the state transition table - enterprise-architect

At present I have a composite state machine which contains some pseudostates, including initial, exit, choice, entry and exit node. When I use the build-in statechart editor to show the state-next state table, the exit and entry point cannot display as the other pseudostates.
Is there a solution to solve this, so that the Exitpoint1 can be displayed in the table?
State Machine
State Transition table

Related

Creating a multi-colored Line Timeline in Elasticsearch using Vega-lite

I have been trying to create a timeline based off of the data that I get from a machine. The data that I receive includes the current timestamp, the state the machine is entering (ACTIVE, READY, FEED HOLD, STOPPED, UNAVAILABLE), the state the machine left, and the timestamp that the machine entered the last event.
I want to create a line which starts at the earliest filtered timestamp to the current timestamp, with the line being segmented based off of when an event changes. There's also setting the color of each segment, but I am using a Condition-Test block in order to handle that.
Functionally, my data looks like this:
#timestamp Jun 1, 2022 # 11:41:12.195
deviceName:XXXXXX
deviceUUID:YYYYYY
lastEvent:ACTIVE
Events.Execution.##data: READY
duration:256.811
The issue that I'm having is segmenting the line so that I can color each segment. I know that it is one color per line, so I would need to layer the lines. However, since I am doing this on a horizontal line, there's the risk that I lose segments. Since I'm looking to use this for management decisions, I need as much accurate information as possible.
Is there a way to create clearly defined segments and ensure there is no overlap using Vega-Lite?

How to run part of a stream without having to execute the whole stream?

I use the select node to filter out some of the entries in the dataset, and then run a model.
I want to save time and not go through all the rows again when I rerun the model. I tried the Run from here option, but the execution goes through all the rows again. Also tried the sequal pushback purple button, but to no effort.
Is it possible to only go through the selected rows when running a model, without having to export the newly filtered database?
If this makes any sense to you, I guess it might work:
Once you have specified the required options for streams and
connected the required nodes, you can run the stream by running
the data through nodes in the stream. Run part of a data stream by
right-clicking any non-terminal node and clicking Run From Here on
the pop-up menu. Doing so causes only those operations after the
selected node to be performed.
Can you provide a snapshot of your data?
Do you use more than one column as a target in your time series?
You can change the selection and just click somewhere behind the nugget and use run from here maybe?
What's the error message or does it just rerun the model?

Enterprise Architect: Refering to An Instantiated Class's Attribute in a State Transition

In Enterprise Architect, I have a class defined with an attribute which is an enum. Is it possible to create a transition in a state machine based on a test of that enum's value? How?
I find the only way to create transitions with triggers or signals very limited.
My intent is to export the state machine to a requirements document. Although, I would think this should work with simulation.
A trigger is what causes a token to flow along a state transition. Take for example this state transition:
When you open the properties of the transition you see
Now you can add a trigger by clicking the ellipsis right to Name:. Here you either select an existing trigger or you create a new one on the fly.
The trigger type can be selected from the drop down:
Signal is the default and you can choose one from the ellipsis right to the Specification:. You can model the signal like this:
and you would describe in it's note that (e.g.) it fires whenever the enumeration changes.
The diagram does not show the use of the signal, but it's hidden in the connector's properties. To visualize that you could add appropriate notes and link them up to connector and elements:
Note: state machines are modeled for classes (and you usually put them inside the class). If you instantiate that class the instance will also have that state machine which can run as some kind of code inside the instance.

In Maximo, how do I get in between workflow process whether data in the table has been modified?

I want to show a different option to the user in workflow through input node, depending upon whether the user has modified the record or not.
Problem is if I would use a condition node with custom class to detect whether object has been modified by some person or not in between the workflow process then as soon as the person clicks on route workflow the save is automatically called and isModified() flag gets false, How do I get in condition node whether some person has modified the record or not.
I have to show different options to the user if he has modified and different option on routing workflow if he have not modified.
Sounds to me like you need to enable eAudit on the object and then to check whether eauditusername on the most recent audit record for that object bears the userid of the current user.
It's a little hokey and tempts fate, but if your condition node is early in the workflow's route when this button is pressed, you could try and check to see if the changedate on the object (assuming you are working with one of the many objects that has one) is within the last 5 seconds. There is a gap where the record could be routed twice within a few seconds, but the gap is fairly hard to hit. There is also a gap where if the system slows down at that point and takes more than 5 seconds to get to and run your condition, then it would appear to be not modified. You can play with the delay to find a sweet spot of the fewest false positives and negatives.

How to prevent Kendo UI Grid from rebinding many times when updating ViewModels

When you bind to a Kendo UI Grid with MVVM, databound will fire once and all is well. If you need to update that data after the fact, every time you change one piece of data on any viewmodel (or child viewmodel), the entire grid re-databinds. Thus, if you had some cell in the grid that is bound to a template and you have to change 2 or 3 properties on the viewmodel from some external ajax source, Databound will fire 2 or 3 times for each model that is changed, causing the entire viewable area to rebind. How can we update lots of data at once and only have databound fire once?
How exactly you rebind the Grid? Basically if you change some of the models like this:
dataItem.set('SomeField','new value');
dataItem.set('someOtherField','other value');
This way the Grid will be indeed bound two times because of the MVVM. The change event is triggered each time you call set.
However if you update the values like this:
dataItem.SomeField='new value';
dataItem.someOtherField= 'other value';
The Grid wont react to the change and wont rebind re-read the values from the models you can force the Grid to do it through the refresh method.
$('#gridName').data().kendoGrid.refresh()
I'm not sure if there is some way to temporarily tell the grid to stop listening to events and then at the end, re-sync once. If there is, please give that answer here! Otherwise, what I did instead is I didn't go through .set() for each item. Instead, I updated the data for all the rows by setting the data directly to the property. Then when I got to the very last row I was updating, I called .set() on the last property that needed to be updated. This will cause databound to fire only once and the entire grid will refresh itself with all the data that was changed. If you don't do it this way, then the more rows displayed on the page, the longer it takes to process. (It could take 20+ seconds before the user can do anything again.)
It looks like the dataBinding event is where you can prevent a rebind on the grid.
Telerik Online Docs