Package org.openquark.samples.bam.model

Examples of org.openquark.samples.bam.model.TriggerDescription


     */
    protected void onEditTrigger () {
        MonitorJobDescription jobDescription = getSelectedJobDescription ();

        if (jobDescription != null) {
            TriggerDescription triggerDescription = getSelectedTriggerDescription ();

            if (triggerDescription != null) {
                EditBindingsDialog dialog = new EditBindingsDialog (JOptionPane.getFrameForComponent(this), app, jobDescription, triggerDescription, BindInputsCard.FOR_TRIGGER);
               
                dialog.doModal ();
View Full Code Here


    protected void onRemoveTrigger () {
        MonitorJobDescription jobDescription = getSelectedJobDescription ();

        if (jobDescription != null) {
            if (confirmAction("Are you sure you want to delete this trigger?")) {
                TriggerDescription triggerDescription = getSelectedTriggerDescription ();

                if (triggerDescription != null) {
                    jobDescription.removeTrigger (triggerDescription);
                }
            }
View Full Code Here

            return false;
        }
       
        switch (usage) {
            case FOR_TRIGGER:
                TriggerDescription triggerDescription = new TriggerDescription (gemEntity.getName().getQualifiedName(), inputBindings);
               
                jobDescription.addTrigger(triggerDescription);
                break;
               
            case FOR_ACTION:
View Full Code Here

        String gemName = boundGemDescription.getGemName();
       
        List<InputBinding> inputBindings = bindInputsCard.getInputBindings ();
       
        if (usage == BindInputsCard.FOR_TRIGGER) {
            jobDescription.replaceTriggerDescription(getIndexForReplace(), new TriggerDescription (gemName, inputBindings));
        } else if (usage == BindInputsCard.FOR_ACTION) {
            jobDescription.replaceActionDescription(getIndexForReplace(), new ActionDescription (gemName, inputBindings));
        } else {
            return false;
        }
View Full Code Here

TOP

Related Classes of org.openquark.samples.bam.model.TriggerDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.