cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding commit project in Rules Edit API

xudonny
Advisor
Advisor
0 Kudos

Dear experts,

I'm trying to use Rules Edit APIs to modify a decision table.

At the end, I use

project.commit(rulesets , false);

to commit the changes. The changes indeed work as I saw in Rules Manager.

The problem I found is for the second parameter.

As I read in help http://help.sap.com/saphelp_nw73ehp1/helpdata/de/a1/8f597e9b9d448b847b24b0b5fd27dd/content.htm

when I set it to false, the changes shouldn't be activated. But now no matter I set to false or true,

the changes are always activated in the system. I checked in Rules Manager for both latest version and active version,

both have the changed value.

Any idea what is doing wrong here? Thank you.

Regards,

Donny XU

Accepted Solutions (0)

Answers (1)

Answers (1)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Donny XU,

Yes the parameter is meant to enable activation after commit and it behaves as defined. Could you confirm that you made some changes in the project each time you were calling #commitProject

There have been no new development in RuleAPI and so there is no reason it should not behave as defined. Can you share more details on project and version because when I do using a simple test it works as expected.

Cheers,

Archana