<transition name="reject" to="S Revision">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<!–Find the Acceptance folder–>
var workingFolder = companyhome.childByNamePath("Working");
etc etc
ERROR [org.jbpm.instantiation.FieldInstantiator] couldn't parse set field 'runas' to value '<runas xmlns="urn:jbpm.org:jpdl-3.1">admin</runas>'
java.lang.NullPointerException
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
lorsque je démarre mon workflow…compiler ton extension avec la version majeure de Java qu'Alfresco
import java.io.*;
public class ClassVersionChecker {
public static void main(String[] args) throws IOException
{
for (int i = 0; i < args.length; i++)
checkClassVersion(args[i]);
}
private static void checkClassVersion(String filename) throws IOException
{
DataInputStream in = new DataInputStream
(new FileInputStream(filename));
int magic = in.readInt();
if(magic != 0xcafebabe)
{
System.out.println(filename + " is not a valid class!");;
}
int minor = in.readUnsignedShort();
int major = in.readUnsignedShort();
System.out.println(filename + ": " + major + " . " + minor);
in.close();
}
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.