Showing posts with label mulesoft anypoint platform. Show all posts
Showing posts with label mulesoft anypoint platform. Show all posts

Monday, April 30, 2018

Using secure configuration properties in Mule 4

Overview

The enterprise edition of Mule runtime comes equipped with a Secure Configuration Properties module which is a very neat tool that allows you to hide your keys from prying eyes.
Here is an example of how you could:
  • encrypt strings or entire files
  • reference encrypted properties stored in a file
  • decrypt them with a master key;
  • and use those values to connect to Salesforce cloud to retrieve a list of Accounts.

This article assumes that you have a Salesforce developer account, and possess basic knowledge of Anypoint Studio 7 and various Mule concepts.

1. Get the tool ready, and prepare your encrypted values
Come up with your master key. For this demo I am using My$ecr3tK3y!!
Open DOS and change directory to the folder where your jar file is located.

Thursday, April 26, 2018

Create a domain project in Mule 4

A domain project comes in handy when you want to share resources across different Mule projects in your hosted on-premise Mule Runtime.

In Mule Runtime 4, the resources that can be shared are: 
  • VM
  • TLS Context
  • JMS and JMS Caching Connection
  • Database
  • WMQ
  • JBoss, Bitronix Transaction Manager

Tuesday, April 10, 2018

Invoke static custom Java methods in Mule 4


This example demonstrates how to use Mule 4's Java method to invoke a custom static method with 2 arguments. The custom class is reused from this post: Define and consume custom Java methods using Dataweave 2.0 in Mule 4.

Tips when working with custom java classes in Mule 4:
  1. Include your custom namespace in mule-artifact.json
  2. If you are making references to third party libraries, include them as maven dependencies in pom.xml

This is a simple example using a HTTP Listener to listen for POST requests to http://localhost:8081/list-files2



Tuesday, March 27, 2018

Mulesoft Flow to create Service Request in ServiceNow

This article describes how you could create a Mulesoft flow to create a Service Request in Service-Now.

First of all, you will need to have access to a Service-Now Development instance, for example:
* Replace with your company's development instance, if needed.

You will need a username and password to connect to this instance.
Go to https://developer.servicenow.com/ and register for a new account for testing purposes.

Once logged in, go to the MANAGE tab, and select Instance.
Create a new instance, and take note of the URL, admin username and password.
* The instance will be removed if there's no activity in 10 days.



For OOTB requests, there is typically one or more catalog items attached to a request.
Login to your service-now instance, in my case it's https://dev52286.service-now.com
Browse your service catalog and determine what kind of request you would like to make.

Related Posts Plugin for WordPress, Blogger...