Blog Posts Process Analysis Process Modeling

How to add Code Snippets to your posts at ARIS Community

Blog: Aris BPM Blog

Dear ARIS Community members,

we just have added a nice new feature to our community: Code Snippets.

Until now, when you added some code snippets to your post, it did not look too nice to be honest. But now, when you post code snippets, it can look like this:

var models = ArisData.getSelectedModels()

var outputDummy = Context.createOutputObject()

for(var i=0; i<models.length; i++) {
   var picture = models[i].Graphic(false, false, Context.getSelectedLanguage())
   var imageFileName = "ModelImage_"+i+1+".png"
   picture.Save(outputDummy, imageFileName)
   Context.addOutputFileName(imageFileName)
   Context.setSelectedFile(imageFileName)
}

That’s much more readable, isn’t it? If you also want to format your code like this, just click on the Code Snippet button in the toolbar:

image

After that, select the coding language from the list given on the top of the opened window, paste your code in the Code content section and click Okay and that’s it.

image

We hope you like the new feature and are looking forward to your feedback at feedback@ariscommunity.com.

Your ARIS Community team

Forum: 

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/how-to-add-code-snippets-to-your-posts-at-aris-community/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×