cancel
Showing results for 
Search instead for 
Did you mean: 

money-tasks-1.0.0.jar

dev1
Champ in-the-making
Champ in-the-making
hi,
I successfully created money-tasks-1.0.0.jar and added it to the preferences as mentioned in the user guide…from here what i need to do to see a new palette in the eclipse….



Regards,
DEV
41 REPLIES 41

tiesebarrell
Champ in-the-making
Champ in-the-making
Open or re-open an Activiti diagram, that's all.

dev1
Champ in-the-making
Champ in-the-making
hi,
I need some help in creating this new palette….what code should be written in "org.acme.runtime.AcmeMoneyJavaDelegation".

Regards,
DEV

balaji1
Champ in-the-making
Champ in-the-making
Hey,
Are you able to create the extension jar. I am getting build failure in the example for customisation
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 59.403s
[INFO] Finished at: Wed Jan 05 06:14:18 GMT 2011
[INFO] Final Memory: 4M/81M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project money-tasks: Error assembling JAR: Failed to read filesystem attributes for: /etrade/home/rravindr/Actnew_0.6/com.etrade.designer.custom.palette/pom.xml: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlad /etrade/home/rravindr/Actnew_0.6/com.etrade.designer.custom.palette/pom.xml': Error while executing process. Cannot run program "/bin/sh": java.io.IOException: error=12, Cannot allocate memory -> [Help 1]

dev1
Champ in-the-making
Champ in-the-making
the problem here is…i dont know where and what to write in the java classes. how to link these classes to  pom.xml…..

balaji1
Champ in-the-making
Champ in-the-making
How cum you created the jar file then.
Can you please tell the list of steps you followed?

dev1
Champ in-the-making
Champ in-the-making
Step wise description as asked by u:-

1)Create a new java project.
2)create a new pom.xml file in that java project…and i wrote the following things in that pom.xml:-

<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>org.acme</groupId>
  <artifactId>money-tasks</artifactId>
  <version>1.0.0</version>
  <packaging>jar</packaging>
  <name>Acme Corporation Money Tasks</name>

<dependencies>
  <dependency>
    <groupId>org.activiti</groupId>
    <artifactId>activiti-designer-integration</artifactId>
    <version>0.6.0</version> <!– Current Activiti Designer Version –>
    <scope>compile</scope>
  </dependency>
</dependencies>

<repositories>
  <repository>
      <id>Activiti</id>
      <url>http://maven.alfresco.com/nexus/content/repositories/activiti/</url>
   </repository>
</repositories>


<build>
  <plugins>
        <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <source>1.5</source>
        <target>1.5</target>
        <showDeprecation>true</showDeprecation>
        <showWarnings>true</showWarnings>
        <optimize>true</optimize>
      </configuration>
    </plugin>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <version>2.3.1</version>
      <configuration>
        <archive>
          <index>true</index>
          <manifest>
            <addClasspath>false</addClasspath>
            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
          </manifest>
          <manifestEntries>
            <ActivitiDesigner-Extension-Name>Acme Money</ActivitiDesigner-Extension-Name>
          </manifestEntries>
        </archive>
      </configuration>
    </plugin>
  </plugins>
</build>


3)previously i just built this file and got a jar..but i know untill imention something in the </dependencies> tag which i have left blank for time being i wont be able to do any thing….

I want u to tell me what is the java file which i need to write and how to mention it in dependencies tag in my pom.xml to create a new palette.

Regards,
DEV

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

you don't need anything in the dependencies tag besides what you have already. The class you write is IN this library, so you're not dependent on another. Just implement a POJO and annotate some members as described in the userguide. That's the kind of class you need to write.

dev1
Champ in-the-making
Champ in-the-making
hi,
so you are asking me to add this jar file to the activiti project as mentioned in the user guide and impliment a class with the name "AcmeMoneyTask" as mentioned in the user guide……

till here i have done it earlier but the problem was, in that pojo file i was getting stuck with some dependencies. I am forwarding you the snapshot…


Regards,
DEV

balaji1
Champ in-the-making
Champ in-the-making
Now,
After I created plugin.xml and ran  mvn eclipse:eclipse. It has created src/main/java and src/main/resources folders.

1. Once you've created your extension JAR (for instance, by performing a mvn install in your project to build it with Maven), you need to transfer the extension to the computer where Activiti Designer is installed;

For the above step , I ran mvn install and faced below error.

ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project money-tasks: Error assembling JAR: Failed to read filesystem attributes for: /etrade/home/rravindr/Actnew_0.6/com.etrade.designer.custom.palette/pom.xml: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlad /etrade/home/rravindr/Actnew_0.6/com.etrade.designer.custom.palette/pom.xml': Error while executing process. Cannot run program "/bin/sh": java.io.IOException: error=12, Cannot allocate memory -> [Help 1]
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.