All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev-ui.qwc-automatiko-service-workflows.js Maven / Gradle / Ivy

There is a newer version: 0.39.0
Show newest version
import { LitElement, html, css} from 'lit';
import { columnBodyRenderer } from '@vaadin/grid/lit.js';
import { JsonRpc } from 'jsonrpc';
import '@vaadin/grid';
import '@vaadin/vertical-layout';
import 'qui-badge';


export class QwcAutomatikoServiceWorkflows extends LitElement {
	
	jsonRpc = new JsonRpc("AutomatikoService");

    static styles = css`
        .arctable {
          height: 100%;
          padding-bottom: 10px;
        }

        code {
          font-size: 85%;
        }

        .annotation {
          color: var(--lumo-contrast-50pct);
        }

        .producer {
          color: var(--lumo-primary-text-color);
        }
        `;

    static properties = {
        _workflows: {state: true},
    };
    
    connectedCallback() {
        super.connectedCallback();
        console.log("connected callback")
        this.jsonRpc.getInfo().then(jsonRpcResponse => {
            this._workflows = [];
            jsonRpcResponse.result.forEach(c => {
                this._workflows.push(c);
            });
        });
    }

    render() {
        if (this._workflows) {

            return html`
                
                    
                    

                    
                    

                    
                    

	                
                    
                `;
            
        } else {
            return html`No workflows found`;
        }
    }

    _idRenderer(workflows) {
        return html`
      ${workflows.id}
      `;
    }

    _nameRenderer(workflows) {
        return html`
      ${workflows.name}
      `;
    }
    
    _descriptionRenderer(workflows) {
        return html`
      ${workflows.description}
      `;
    }
    
    _visibilityRenderer(workflows) {
        return html`
      ${workflows.publicProcess}
      `;
    }
}
customElements.define('qwc-automatiko-service-workflows', QwcAutomatikoServiceWorkflows);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy