Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Adding the UnsuspendAccount Rule

Here is the sample code for adding the UnsuspendAccount rule.

Copy

UnsuspendAccount Rule Source Code

    /**
     * @description
     * @author nprade-nb
     */
    rule Rules.UnsuspendAccount {

        attribute {
            priority = 1;
            forwardChain = true;
        }

        declare {
            Concepts.Account account;
            Events.Unsuspend request;
        }

        when {
            account@extId == request.AccountId;
            account.Status == "Suspended";
        }

        then {
            account.Status = "Normal";
        }

    }

Congratulations! You have now configured the project’s ontology and rules. Now you are ready to configure the Cluster Deployment Descriptor (CDD) and build the archive for deployment. But before you do, it’s wise to validate and analyze the project, and look at it in the Project diagram.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.