Architecting, installing and maintaining your SAS environment

Versioning in Decision Builder

Accepted Solution Solved
Reply
Contributor
Posts: 49
Accepted Solution

Versioning in Decision Builder

[ Edited ]

We are on SAS 9.4M4 with a bunch of licenses including among others, DM, DB and MAS... but not Viya or Visual Analytics.

 

For versioning, we notice that DM has some built-in versioning, as well as the BRM macros referenced in the Model Manager Documentation.  But DB has nothing. I know we can version what's on MAS and/or in metadata, (e.g. publish from DB then version what was published) however that would only be the "export" half... recreating the decision itself in Decision Manager remains a question: how to "import" something that has been versioned.

 

Has anyone seen or developed something similar to the BRM macros for use with Decisions built in DB?  Or have other approaches to this?

 

Thanks much!

John


Accepted Solutions
Solution
‎04-25-2018 03:33 PM
Contributor
Posts: 49

Re: Versioning in Decision Builder

[ Edited ]

I got some answers on this from SAS:

 

To pull a decision from DB:

1. GET http://{server}:{port}/SASDecisionManager/rest/decisions?name=ReplaceWithYourdecisionName

2. GET http://{server}:{port}/SASDecisionManager/rest/decisions/ReplaceWithDecisionId

(where "decision id" in the second call is pulled from the first call's response)

 

 

To restore a decision to DB (or migrate to a different instance of DB):

1. POST http://{server}:{port}/SASDecisionManager/rest/decisions

(where Content-Type is application/json, and the request body is the .json from step (2) above)

 

Long story short: use the REST API; unfortunately no equivalent to the BRM macros for DB at this time.

View solution in original post


All Replies
Solution
‎04-25-2018 03:33 PM
Contributor
Posts: 49

Re: Versioning in Decision Builder

[ Edited ]

I got some answers on this from SAS:

 

To pull a decision from DB:

1. GET http://{server}:{port}/SASDecisionManager/rest/decisions?name=ReplaceWithYourdecisionName

2. GET http://{server}:{port}/SASDecisionManager/rest/decisions/ReplaceWithDecisionId

(where "decision id" in the second call is pulled from the first call's response)

 

 

To restore a decision to DB (or migrate to a different instance of DB):

1. POST http://{server}:{port}/SASDecisionManager/rest/decisions

(where Content-Type is application/json, and the request body is the .json from step (2) above)

 

Long story short: use the REST API; unfortunately no equivalent to the BRM macros for DB at this time.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 236 views
  • 1 like
  • 1 in conversation