Package org.useware.kernel.model.structure

Examples of org.useware.kernel.model.structure.InteractionUnit


        Mapping securityAttributesMapping = new DMRMapping()
                        .addAttributes("user-name", "password", "security-domain");


        // UI
        InteractionUnit root = new Builder()
                .start(new Container<StereoTypes>(namespace, "datasources", "Datasources", Choice, EditorPanel))
                .mappedBy(datasourceCollection)

                    .start(new Container(namespace, "regularDS", "Regular", Concurrency))
View Full Code Here


        Container errorHandler = new Container(ns, "errorHandler", "Error Handler", Choice, Pages);
        Container fileHandler = new Container(ns, "undertow#fileHandler", "File Handler", Concurrency);


        // structure & mapping
        InteractionUnit root = new Builder()
                .start(overview)
                    .mappedBy(global)

                    .start(handler)
                        .start(fileHandler)
View Full Code Here

        QName source = (QName)event.getSource();
        QName target = event.getTarget();

        //System.out.println("Navigate to " + target);

        InteractionUnit targetUnit = dialog.findUnit(target);
        if(targetUnit!=null// local to dialog
        {
            Procedure activateProcedure = procedures.getSingle(CommonQNames.ACTIVATION_ID);
            activateProcedure.getCommand().execute(dialog, target);
        }
View Full Code Here

        return el;
    }

    private InteractionUnit createUnitByName(String name, Node node)
    {
        InteractionUnit unit = null;

        //QName.valueOf(node.getAttributes().getNamedItem("id").getNodeValue());
        QName id = new QName(node.getNamespaceURI(), node.getAttributes().getNamedItem("id").getNodeValue());
        String label = ParseUtils.IDOrLabel(node);
View Full Code Here

        @Override
        public void add(ReificationWidget widget) {

            //System.out.println("Add "+ widget.getInteractionUnit() + " to " + unit);
            InteractionUnit unit = widget.getInteractionUnit();
            DMRMapping mapping = (DMRMapping) unit.findMapping(MappingType.DMR);

            if(unit.doesProduce())
            {
                Iterator<Resource<ResourceType>> iterator = unit.getOutputs().iterator();
                Resource<ResourceType> resource =  iterator.next();

                String resourceAddress = mapping.getAddress();
                String operationName = resource.getId().getSuffix();
View Full Code Here

        ElementAdapter adapter = getAdapter(root.getNodeName());

        if(InteractionUnit.class == adapter.getType())
        {
            // interaction unit contents
            InteractionUnit unit = (InteractionUnit)adapter.fromXML(root);

            if(unit instanceof Container)
                builder.start((Container)unit);
            else
                builder.add(unit);
View Full Code Here

TOP

Related Classes of org.useware.kernel.model.structure.InteractionUnit

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.