Way to call Appian process directly from java robot

Hi to all, there is a way to call an Appian process directly from a robot written in java?

Thank you!

  Discussion posts and replies are publicly visible

Parents
  • Hi Antonio,

    To do that, you need to design a web Api object and then call it from a robot implementing the interface IWebApiResponse.

    There is a example: 

    https://docs.appian.com/suite/help/20.2/rpa/rpa_in_apps/sync-pattern.html

    I hope this help.

  • Hi Jesus, my robot cannot resolve IWebApiResponse class, I'm using 20.2 version. Do you know what it could be?

  • Yes, thank you. I'm using  jidoka-parent 7.1.0.

    But when I programmed the robot (a few months ago) there was still version 7.0.0, so the configurator.exe also had version 7.0.0
    Now what should I do, re-download the configurator and install everything again? Or redo the robot from scratch?

  • Hi Antonio:

    It is not necessary re-download the configurator. 

    Try to create a new robot from template, for example using "Hello World". You will get the source code in a zip file. Import the code in your IDE and check that the jidoka-robot-parent for this robot is the 7.1.0 version. If yes, try to execute the "mvn clean deploy" command. This command should download the artifact com.novayre.jidoka.robot:jidoka-robot-parent:pom:7.1.0 to your local maven directory ( ${user.home}\.m2\repository )

    If it doesn't work with the template either, ask for your Appian administrator to review if this version of Appian RPA is available in your environment.

  • Thank you David, I did as you said and I get this error

    [ERROR] Non-resolvable parent POM for com.novayre.jidoka.robot.test:TestBrowserWebApi:0.0.1: Failure to find com.novayre.jidoka.robot:jidoka-robot-parent:pom:7.1.0 in appiandemo.appiancloud.com/.../ was cached in the local r
    epository, resolution will not be reattempted until the update interval of jidoka has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 12, column 10 -> [Help 2]

    ...

    Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find com.novayre.jidoka.robot:jidoka-robot-parent:pom:7.1.0 in https://appiandemo.appiancloud.com/rpa-repo/repository/jidoka/ was cached in the local repository, resolution will
    not be reattempted until the update interval of jidoka has elapsed or updates are forced

    Should I update the repository? How can I solve?
    Thank you

  • Hi Antonio,

    The best way to fix it is to delete the contents of the C: /Users/your.user/.m2/repository folder.

    Once you delete the content, do a #mvn clean install

    I hope this help

  • Not works...

    C:\Users\myUser\Desktop\RPA\TAD ROBOTS\RobotBrowserClass - Package - 2020-09-09_0804\RobotBrowserClass>mvn clean install
    [INFO] Scanning for projects...
    Downloading from jidoka: https://company.appiancloud.com/rpa-repo/repository/jidoka/com/novayre/jidoka/robot/jidoka-robot-parent/7.1.0/jidoka-robot-parent-7.1.0.pom
    Downloading from central: https://repo.maven.apache.org/maven2/com/novayre/jidoka/robot/jidoka-robot-parent/7.1.0/jidoka-robot-parent-7.1.0.pom
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for com.novayre.jidoka.robot.test:RobotBrowserClass:0.0.1: Could not find artifact com.novayre.jidoka.robot:jidoka-robot-parent:pom:7.1.0 in jidoka (https://company.appiancloud.com/rpa-repo/repository/jidoka/) and 'parent.relati
    vePath' points at wrong local POM @ line 12, column 10
     @
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR]   The project com.novayre.jidoka.robot.test:RobotBrowserClass:0.0.1 (C:\Users\myUser\Desktop\RPA\TAD ROBOTS\RobotBrowserClass - Package - 2020-09-09_0804\RobotBrowserClass\pom.xml) has 1 error
    [ERROR]     Non-resolvable parent POM for com.novayre.jidoka.robot.test:RobotBrowserClass:0.0.1: Could not find artifact com.novayre.jidoka.robot:jidoka-robot-parent:pom:7.1.0 in jidoka (https://company.appiancloud.com/rpa-repo/repository/jidoka/) and 'parent.re
    lativePath' points at wrong local POM @ line 12, column 10 -> [Help 2]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

    At the line 12 of pom there is a parent element with version.

    <?xml version="1.0" encoding="UTF-8"?>
    <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/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    
    	<groupId>com.novayre.jidoka.robot.test</groupId>
    	<artifactId>RobotBrowserClass</artifactId>
    	<packaging>jar</packaging>
    	<version>0.0.1</version>
    
    	<name>browser</name>
    
    	<parent>
    		<groupId>com.novayre.jidoka.robot</groupId>
    		<artifactId>jidoka-robot-parent</artifactId>
    		<version>7.1.0</version> <!-- VC -->
    	</parent>
    
    	<profiles>
    		<profile>
    			<id>jidoka-repo</id>
    
    			<activation>
    				<activeByDefault>true</activeByDefault>
    			</activation>
    
    			<repositories>
    				<repository>
    					<id>jidoka</id>
    					<url>https://company.appiancloud.com/rpa-repo/repository/jidoka/</url>
    					<releases>
    					</releases>
    					<snapshots>
    					</snapshots>
    				</repository>
    			</repositories>
    
    			<pluginRepositories>
    				<pluginRepository>
    					<id>jidoka</id>
    					<url>https://company.appiancloud.com/rpa-repo/repository/jidoka/</url>
    					<releases>
    					</releases>
    					<snapshots>
    					</snapshots>
    				</pluginRepository>
    			</pluginRepositories>
    			<distributionManagement>
    				<repository>
    					<id>jidoka</id>
    					<url>https://company.appiancloud.com/rpa-repo/repository/jidoka/</url>
    					<layout>default</layout>
    				</repository>
    			</distributionManagement>
    		</profile>
    
    	</profiles>
    
    	<dependencies>
    		<dependency>
    			<groupId>com.novayre.jidoka.module</groupId>
    			<artifactId>jidoka-browser-api</artifactId>
    			<version>${jidoka.version}</version>
    		</dependency>
    	</dependencies>
    </project>

  • The jidoka-robot-parent-7.1.0.pom  artifact must be downloaded from your Appian RPA repository, in your example https://company.appiancloud.com/rpa-repo/repository/jidoka/ . 

    If maven try to look for the artifact in  https://repo.maven.apache.org/ is due to it was not found in the previous repository. 

    Do you have access to your Appian RPA repository using the Web Browser?

  • Yes, I have access to repository but the version 7.1.0 there isn't.

    If there is not what should I do?

    Thank you

  • Please change in your pom.xml

    <parent>
       <groupId>com.novayre.jidoka.robot</groupId>
       <artifactId>jidoka-robot-parent</artifactId>
       <version>7.0.0</version> <!-- VC -->
    </parent>

    I think it is going to work...Please talk to your administrator to upload the version 7.1.0 to your repository....

  • Currently I have solved in this way, but I don't understand how to update Nexus repository, if I click on the upgrade link it takes me back to the sonatype page from which I can download a zip file. How can I update the repository if it is on the Appian cloud?

Reply Children
No Data