Thursday, March 20, 2025

#1063 OIC 25.04 New Features - Decisions in Projects

Decisions, previously only available in Process Automation, can now be created within the context of an OIC Project.

Naturally, this also includes the ability to invoke a Decision from an integration - 

Let's try this out with the following simple scenario - apply a discount to an order, based on product ordered.

The logic is banal - 

  • product iBike - 10% discount
  • product iCar - 15% discount
First step is to define the input data, in my case, the product ordered - 





I define the input, i.e. product as type Text



I now add a Decision Table - this is where I will define the discount rule -

I join the input to the decision table - 

Now to editing the decision table - 

As you can see, I've added 3 rules, covering all of my products.

I can now test the rule - 

Let's test with iCar - 


Excellent! Now we have created our first decision in a project. The final step within Decisions is to create a service, exposing this decision - 

I'll address the missing rule later. 
Activate the Decision - then open the order processing integration -



 










































 

  

Wednesday, March 19, 2025

#1062 OCI Logging Analytics Dashboards for OIC - more details

I go into a bit more detail here - based on the following Billing Dashboard. The first section looks at linking a new widget to the dashboard filter.  

There are 4 dashboards for OIC, delivered OOTB with OCI Logging Analytics.

Each of these dashboards has the following filters -

The OIC Environment Filter enables fleet management and the ability to drill down into individual OIC instances.

So how do I link a new widget to this filter? Let's look at a simple example; I'll begin with the following widget, based on the OCI Service Metric , Consumed messages (Billed Messages for Integration)

I save the query for future use, but first, I add a new widget to my dashboard -

Let's replace the ocid with the following - BilledMessageCount[60m]{resourceId = $(params.oic-env)}.grouping().sum()

here we will link the oic-env parameter to the filter - 

Now we can run the query - 

Let's group on integration - 

Check out the table - 

Note, we are also seeing entries for hours where there are no billed messages. Also the column titles are not very user friendly.

I save the widget and return to the dashboard, where I save the dashboard as well.

I then export the dashboard definition, this is a .json file.

I now look for my new widget - I called mine BlogDemo. Here I can change the column titles and also suppress data for hours where there were no billable messages.

Now to changing the column titles - 

Finally, save and import - 

There is another way to edit the .json definition - 

Observability & Management -> Management Dashboard -> Dashboards

Open the BlogDemo widget - 
Click on {JSON} -