How can I create my custom palette in AnyLogic - anylogic

I'am starting a project on which we want to study the information process flow inside the company I work with. I have to create different agent-type that represents the different departments and the information exchanged between them.
To maintain the project ordered I would like to know if it is possible, and if yes how, creating palette that will host my agent-type. I would like to create a palette "departments" and "information".
Thanks Andrea

Please consider the AnyLogic help first. Open it (Help/AnyLogic Help/) and search for "Creating a library", all details are there for you.
To be able to export the library (for other users to use it), you will need the Prof license, though.

Related

Prefilled notes of Class attributes in Enterprise architect

is there a way to have prefilled attributes notes in enterprise architect?
It should be something like this scenario:
1) I create new attribute
2) Enterprise architect prefill note of attribute with predefined text
Something like template for attributes.
Thank you for any advice
I know this won't help directly this question.
Anyways you can achieve it through an external addin.
All you need to do is handle the EA_OnPreNewAttribute and EA_OnPostNewAttribute broadcast events .
This isn't quite what you're after but it is possible to create an Attribute stereotype in a Profile and add to this a Tag with an initial value set to what ever you want. When you create an attribute with this stereotype, this means your predefined text would appear in a tag-value for the attribute rather than the note. Not ideal, but might work for you.
You could also have a go at writing some JavaScript to do this as well (under Scripting in EA). You'd have to use the JS to navigate the repository structure, find the attributes in question, and update their note. I don't believe you can attach a script to a UI event, so I think you'd be stuck running this post-hoc rather than having the note auto-populate on attribute creation.

How to create a list of users on in Alfresco Activiti?

so I have this simple question that I would love to get anwserd.
I am new to BPM an Alfresco Activiti and I am workng on with the trial version of Alfresco Activiti to create a sample project for our company.
I decided to work with the Step editor to se what it can do and if it's as powerfull as a normal BPMN 2.0 editor.
Now I am working on a form where one user would need to select the user for the next task. I was wondering if it's possible to use the single select component to display all the users on the server from which the asignee for the next task could be selected. How can this be done?
I know it is not the bes pracitce to show all the users on the server but this is a test project and your help would be really appreciated.
If any more info is required I will gladly edit the post.
Thnak you.
There is a user picker form control in there, that allows searching the whole system. See the third entry:
you can create a dropdown whose options are populated from a rest call which is provided below.
GET api/enterprise/admin/users
This will return list of all users available in JSON format.
Hope it helped.

Is it possible to add a custom parameter in a Open Graph story with a common action?

We're working on a fitness application where people run and carry out a physical activity for the community as part of a workout.
For example, on Wednesday, Axel ran 5.6km and helped dig a wild flower garden.
We want to build an easy way for users to share these stories on their timelines in Facebook with a map of the course they ran and a sentance that describes the activity. We've opted to use the fitness.runs common action and can provide the course information easily enough, however it's not clear if or how we can add a custom parameter task in the sentence. Ideally the story (with accompanied map) would read:
*Axel* ran *5.6* km to *help dig a wild flower garden* with GoodGym.
Any advice on how to get that working would be greatly appreciated.
I do not think this is possible. Looking at both the run action and the course object you cannot add custom properties. For example, when you go to configure the run action you see the following message at the top "Common Action Type: Run You are viewing the configuration options for the common Action Type: Run. These are read only and are displayed for informational purposes only."
However you might want to consider using User Messages which "allow users to write a personalized message attached to this action." Then you could encourage users to write something about what they helped to do.

Josh Smith's MVVM Demo App: Add commands to MainWindowViewModel's command list

I have a question concerning Josh Smith's famous demo app on MVVM.
I try building a "real" application around it to learn WPF.
He creates this CommandsList in the MainWindowViewModel containing 2 Commands (create new and view all customers). This list is readonly (why? any particular reason?).
I thougt it would be nice to add and remove some commands, depending on the workspace that is currently selected. Like edit or delete a customer when it has the focus and so on.
How would I accomplish this?! Can I just make it a normal list and add commands? Or bind the Commands-View to a commands list of the selected workspace instead of the MainWindow? How? Any other ways? Please share your ideas!
Thank you very much!
I write an article about defining the commands in the viewmodel and how you can then use all the possibilities of databinding to show your commands.
One of the possibilities mentioned was to
define a filtered version of the
command list “local menu commands” for
direct use in the view
Something similar is what I think you should do in your situation: write some filtered version of the command list and change it depending on your state.
The article also contains a link to a very simple demo application that shows only how this works so I think it could help you.
Take a look at this: http://fknet.wordpress.com/2011/08/16/porting-a-wpf-app-with-mvvm-design-pattern-to-silverlight-4-using-caliburn-fluentvalidation/
I use messages via Caliburn.

Add new field in existing built in Application of iPhone

Hope you all are fine and are in your best of moods.
I herewith one doubt to ask you, kindly help me by giving its solution.
I need to add one custom field in existing built in Contact Application of iPhone.
I mean i need to allow user to set different icon or Logo for different contact.
so i need to add one field namely icon or Logo in existing application.
But I don't know how to do this, weather it is possible or not or is there any alternate solution for that or not???
kindly post your Answers.
Thanks in Advance.
You cannot add fields to the built in Address Book datastore. You could perhaps achieve your goals by one of two solutions:
make a copy of the data and add your data to that. You will hit sync problems
Use some property (perhaps ABPropertyID) of the AB information to key a local database referencing your icons.
I'm assuming what you actually want to do is add an icon to the address book app - there is certainly no way to do that.