JBoss Community

Re: How to get a package from Guvnor and start it

created by doboss in jBPM - View the full discussion

Thank you Maciej!

 

Is it possible to do it with just some java code or do I have to create a changeset.xml?

 

I finally figured out that while Resource does not have setUsername() and setPassword(), UrlResource does. But when I try this:

 

        UrlResource newUrlResource = new UrlResource(fileName);

        newUrlResource.setUsername("guest");

        newUrlResource.setUsername("guest");

        kagent.applyChangeSet(newUrlResource);

 

I still get the error.

 

If I add in this:

        newUrlResource.setBasicAuthentication("enabled");

 

I get this error:

      ERROR drools.xml.ExtensibleXmlParser.fatalError  - (null: 1, 1): Content is not allowed in prolog.

 

So is there a way to do the authentication without creating a changeset.xml?

 

If not, where is a good example of reading the changeset.xml into the KnowledgeAgent?

 

Thank you!

Reply to this message by going to Community

Start a new discussion in jBPM at Community