/** * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. **/ /** * This file was automatically generated by the Mule Development Kit */ package org.camunda.demo.mule; import org.mule.api.annotations.Connector; import org.mule.api.annotations.Connect; import org.mule.api.annotations.ValidateConnection; import org.mule.api.annotations.ConnectionIdentifier; import org.mule.api.annotations.Disconnect; import org.mule.api.annotations.display.Password; import org.mule.api.annotations.param.ConnectionKey; import org.mule.api.ConnectionException; import org.mule.api.annotations.Configurable; import org.mule.api.annotations.Processor; /** * Cloud Connector * * @author MuleSoft, Inc. */ @Connector(name="camunda", schemaVersion="1.0-SNAPSHOT") public class camundaConnector { /** * Configurable */ @Configurable private String myProperty; /** * Connect * * @param username A username * @param password A password * @throws ConnectionException */ @Connect public void connect(@ConnectionKey String username, @Password String password) throws ConnectionException { /* * CODE FOR ESTABLISHING A CONNECTION GOES HERE */ } /** * Disconnect */ @Disconnect public void disconnect() { /* * CODE FOR CLOSING A CONNECTION GOES HERE */ } /** * Are we connected */ @ValidateConnection public boolean isConnected() { return true; } /** * Connection identifier */ @ConnectionIdentifier public String connectionId() { return "001"; } /** * Custom message processor named my-processor * * {@sample.xml ../../../doc/camunda-connector.xml.sample camunda:my-processor} * * @param content Content to be processed * @return Some string */ @Processor public String myProcessor(String content) { /* * MESSAGE PROCESSOR CODE GOES HERE */ return content; } /** * Get property value */ public String getMyProperty(){ return this.myProperty; } /** * Set property * * @param myProperty My property */ public void setMyProperty(String myProperty) { this.myProperty = myProperty; } }