Examples of loadRuleAsset()


Examples of org.drools.guvnor.client.rpc.AssetServiceAsync.loadRuleAsset()

    public void onRefreshAsset(RefreshAssetEditorEvent refreshAssetEditorEvent) {
        //AssetUUID == null means to refresh all asset editors contained by the specified module.
        if ((refreshAssetEditorEvent.getAssetUUID() == null && asset.getMetaData().getModuleName().equals(refreshAssetEditorEvent.getModuleName())) || asset.getUuid().equals( refreshAssetEditorEvent.getAssetUUID() ) ) {
            LoadingPopup.showMessage( constants.RefreshingItem() );
            AssetServiceAsync assetService = GWT.create(AssetService.class);
            assetService.loadRuleAsset( asset.getUuid(),
                                                                      new GenericCallback<Asset>() {
                                                                          public void onSuccess(Asset a) {
                                                                              asset = a;
                                                                              render();
                                                                              LoadingPopup.close();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AssetServiceAsync.loadRuleAsset()

                                addRuleViewInToSimplePanel(row,
                                        content,
                                        assets.get(row.getUuid()));
                            } else {
                                AssetServiceAsync assetService = GWT.create(AssetService.class);
                                assetService.loadRuleAsset(row.getUuid(),
                                        new GenericCallback<Asset>() {

                                            public void onSuccess(final Asset asset) {
                                                assets.put(asset.getUuid(),
                                                        asset);
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

                                               null,
                                               "testStatus",
                                               AssetFormats.DRL );
        impl.createState( "testState" );

        RuleAsset asset = impl.loadRuleAsset( ruleUUID );
        assertEquals( StateItem.DRAFT_STATE_NAME,
                      asset.metaData.status );
        impl.changeState( ruleUUID,
                          "testState",
                          false );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

        assertEquals( StateItem.DRAFT_STATE_NAME,
                      asset.metaData.status );
        impl.changeState( ruleUUID,
                          "testState",
                          false );
        asset = impl.loadRuleAsset( ruleUUID );
        assertEquals( "testState",
                      asset.metaData.status );
        asset = impl.loadRuleAsset( ruleUUID2 );
        assertEquals( StateItem.DRAFT_STATE_NAME,
                      asset.metaData.status );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

                          "testState",
                          false );
        asset = impl.loadRuleAsset( ruleUUID );
        assertEquals( "testState",
                      asset.metaData.status );
        asset = impl.loadRuleAsset( ruleUUID2 );
        assertEquals( StateItem.DRAFT_STATE_NAME,
                      asset.metaData.status );

        impl.createState( "testState2" );
        impl.changeState( packagUUID,
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

        PackageConfigData pkg = impl.loadPackageConfig( packagUUID );
        assertEquals( "testState2",
                      pkg.state );

        asset = impl.loadRuleAsset( ruleUUID2 );
        assertEquals( "testState2",
                      asset.metaData.status );

        impl.checkinVersion( asset );
        asset = impl.loadRuleAsset( asset.uuid );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

        asset = impl.loadRuleAsset( ruleUUID2 );
        assertEquals( "testState2",
                      asset.metaData.status );

        impl.checkinVersion( asset );
        asset = impl.loadRuleAsset( asset.uuid );
        assertEquals( "testState2",
                      asset.metaData.status );

    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

                                       RulesRepository.DEFAULT_PACKAGE,
                                       "testCopyAsset2" );
        assertNotSame( uuid,
                       uuid2 );

        RuleAsset asset = impl.loadRuleAsset( uuid2 );
        assertNotNull( asset );
        assertEquals( RulesRepository.DEFAULT_PACKAGE,
                      asset.metaData.packageName );
        assertEquals( "testCopyAsset2",
                      asset.metaData.name );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.loadRuleAsset()

                      impl.listSnapshots( "testSnapshotDiff" ).length );
        assertEquals( 4,
                      impl.listRulesInPackage( "testSnapshotDiff" ).length );

        // Change the rule, archive one, delete one and create a new one
        RuleAsset asset = impl.loadRuleAsset( modifiedRuleUuid );
        String uuid = impl.checkinVersion( asset );
        assertNotNull( uuid );

        impl.removeAsset( deletedRuleUuid );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.