XWIKI Publication Workflow Application dosnt work as his should

Hello, i want to use the Publication Workflow Application in my XWIKI. But this Application does not work as described in the instructions.(https://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki%20Publication%20Workflow%20Application)

I must install the Version 1.8, because the newer versions have an Error by the installation. I have installen all of the 4 applications for Workflow.

I Implement this Application with “PublicationWorkflow.PublicationWorkflowPanel” and it shows me the Panel it works.

When I want do start a Workflow i became the output “workflow.script.failed”

I’ve been dealing with this problem for weeks and I can’t find a solution because there is very little online about it. Maybe someone can help me here or already had similar problems

Best Regards
Insomnia

Many thanks in advance.

Hi @Insomnia! Would be great if you could explain in what way the extension is not working as expected.
The version 1.8 is +4 years sold, so it would be hard to find support for a version that is not the latest.
I would recommend you to use the latest version and report issues on Loading... if you find something broken.

Thanks,
Alex

image
I was just able to update it to version 2.1. But the problems persist. This is what is displayed to me.

You may want to restart your XWiki instance to have the translations fixed, given the fact that you tried multiple versions.
To me, a fresh install shows the panel properly:
image
You can also enable logging on the Workflow application from Administration → Other → Logging and search for org.xwiki.workflowpublication and set it to DEBUG, maybe you will get more info about the failing reason.

image

I have rebooted after each installation of an extension. I have now put the extension in DEBUG mode. Now it works so half but looks stupid.

image

org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [
#macro(getUsersFromGroup $target, $wiki)
  #set($baseRef = $services.model.createDocumentReference($wiki, 'Main', 'WebHome'))
  #set($targetDocRef = $services.model.resolveDocument($target, 'explicit', $baseRef))
  #set($targetDoc = $xwiki.getDocument($targetDocRef))
  #set($groups = $targetDoc.getObjects('XWiki.XWikiGroups'))
  #set($users = $targetDoc.getObjects('XWiki.XWikiUsers'))
  #foreach($user in $users)
    #set($mail = $user.getProperty("email").value)
    #if($!mail != '')
      #if($recipients && $recipients != "")
        #set($recipients = "$recipients, $mail")
      #else
        #set($recipients = $mail)
      #end
    #end
  #end
  #foreach($group in $groups)
    #set($person = $group.getProperty('member').value)
    #if($person && $!person != '')
      #getUsersFromGroup("$person", $targetDoc.getWiki())
    #end
  #end
#end

#set($defaultMail = $xwiki.getXWikiPreference('admin_email', 'mailer@xwiki.localdomain.com'))
#set($action = "$!request.action")
#set($workflowdoc = "$!request.workflowdoc")
## get the document to which to redirect after the action is done
#set($redirectdoc = "$!request.redirectdoc")
#if ($redirectdoc == '')
  ## if none specified, redirect to the workflowdoc
  #set($redirectdoc = $workflowdoc)
#end
#if($workflowdoc == "" || $action == "")
  {{info}}$services.localization.render('workflow.script.notenoughparams'){{/info}}
#else
  #set($workflowDocRef = $services.model.resolveDocument($workflowdoc))
  #if($request.cancel)  
    $response.sendRedirect($xwiki.getURL($workflowDocRef, 'view', ''))
  #end
  ## workflow doc ref: $workflowDocRef
  ## Action : $action
  #if($action == "start")
    #set ($includeChildren = "$!request.includeChildren" != '')
    #set ($targetSpaceReferencePath = "$!request.targetSpace")
    #set ($targetName = "$!request.targetName")
    #set ($defaultSpaceHomePageName = $xwiki.getXWikiPreference('xwiki.defaultpage','WebHome'))
    #set ($targetSpaceReference = $services.model.resolveSpace($targetSpaceReferencePath))
    #if (!$request.targetIsTerminal && $targetName != $defaultSpaceHomePageName)
      #set ($targetSpaceReference = $services.model.createSpaceReference($targetName, $targetSpaceReference))
      #set ($targetReference = $services.model.createDocumentReference($defaultSpaceHomePageName, $targetSpaceReference))
    #else
      #set ($targetSpaceReference = $services.model.resolveSpace($targetSpaceReferencePath))
      #set ($targetReference = $services.model.createDocumentReference($targetName, $targetSpaceReference))
    #end
    #set($workflowConfig = "$request.workflow")
    ## Check that the target and the existing doc are different
    #if($targetReference.equals($workflowDocRef))
      $response.sendRedirect($xwiki.getURL($workflowDocRef, 'view', 'same=true'))
    ## Check that the target does not exist
    #elseif($xwiki.exists($targetReference))
      $response.sendRedirect($xwiki.getURL($workflowDocRef, 'view', 'targetexists=true'))
    #else
      #set($result = $services.publicationworkflow.startWorkflow($workflowDocRef, $includeChildren, $workflowConfig, $targetReference))
    #end
  #elseif($action == 'startastarget')
    #set($workflowConfig = "$!request.workflow")
    #if ($workflowConfig == '')
      $response.sendRedirect($xwiki.getURL($redirectdoc, 'view', 'error=missingparams'))
    #elseif(!$xwiki.exists($workflowDocRef))
      $response.sendRedirect($xwiki.getURL($redirectdoc, 'view', 'error=targetdoesnotexist'))
    #else
      #set($result = $services.publicationworkflow.startWorkflowAsTarget($workflowDocRef, $workflowConfig))
      #if (!$result)
        $response.sendRedirect($xwiki.getURL($redirectdoc, 'view', 'error=invalidpage'))
      #end
    #end
  #elseif ($action == "submitformoderation")
    #set($result = $services.publicationworkflow.submitForModeration($workflowDocRef))
  #elseif ($action == "submitforvalidation")
    #set($result = $services.publicationworkflow.submitForValidation($workflowDocRef))
  #elseif ($action == "validate")
    #set($result = $services.publicationworkflow.validate($workflowDocRef))
  #elseif ($action == "publish")
    #set($result = $services.publicationworkflow.publish($workflowDocRef))
  #elseif ($action == "refusemoderation" && !$request.cancel)
    #set($result = $services.publicationworkflow.refuseModeration($workflowDocRef, "$!request.reason"))
  #elseif ($action == "refusevalidation" && !$request.cancel)
    #set($result = $services.publicationworkflow.refuseValidation($workflowDocRef, "$!request.reason"))
  #elseif ($action == "editDraft")
    #set($result = $services.publicationworkflow.editDraft($workflowDocRef))
  #elseif ($action == "getEditableDraft")
    ## parameter is the target document, check if a draft already exists
    #set($existingDraft = $services.publicationworkflow.getDraftDocument($workflowDocRef))
    #if ($existingDraft)
      #set($result = $services.publicationworkflow.editDraft($existingDraft))
      #set($docToShow = $existingDraft)
    #else
      #set($result = $services.publicationworkflow.createDraftDocument($workflowDocRef))
      #set($docToShow = $result)
    #end
  #elseif ($action == 'unpublish' && !$request.cancel)
    #set($erase = ($request.crush == '1'))
    #set($result = $services.publicationworkflow.unpublish($workflowDocRef, $erase))
    #set($workflowDocRef = $services.publicationworkflow.getDraftDocument($workflowDocRef))
  #elseif ($action == 'archive')
    #set($result = $services.publicationworkflow.archive($workflowDocRef))
  #elseif ($action == 'publishfromarchive')
    #set($result = $services.publicationworkflow.publishFromArchive($workflowDocRef))
  #elseif ($action == 'backtodraft' && !$request.cancel)
    #set($result = $services.publicationworkflow.unarchive($workflowDocRef, false))
  #end       
 
  #if ($result)
    #if($action == 'submitformoderation' || $action == 'submitforvalidation' || $action == 'refusemoderation' || $action=='refusevalidation' || $action=='unpublish')
      #set($recipients = '')
      #set($document = $xwiki.getDocument($workflowDocRef))
      #set($workflowObj = $document.getObject("PublicationWorkflow.PublicationWorkflowClass"))
      #set($workflow = $workflowObj.getProperty("workflow").value)
      #set($workflowDoc=$xwiki.getDocument($workflow))
      #set($group = $workflowDoc.getObject("PublicationWorkflow.PublicationWorkflowConfigClass"))

      #if($action=='submitformoderation' || $action=='refusevalidation')   ##In both cases, we should send a mail to the moderators, if there is any.
        #set($moderators = $group.getProperty('moderator').value)
        #if($moderators != '')
          #getUsersFromGroup($moderators)
        #elseif($action=='submitformoderation')
          #set($webmasters = $group.getProperty('validator').value)
          #getUsersFromGroup($webmasters)
        #else
          #set($contributors = $group.getProperty('contributor').value)
          #getUsersFromGroup($contributors)
        #end
        #if($action=='submitformoderation')
          #set($map={'document':"$xwiki.getDocument($workflowdoc).getDisplayTitle()", 'url':"$xwiki.getDocument($workflowDocRef).getExternalURL()"})
          #set($discard = $xwiki.mailsender.sendMessageFromTemplate($defaultMail, $recipients, null, null, $xcontext.getLocale().toString(), "PublicationWorkflow.ValidationRequestMailTemplate", $map))
        #else
          #set($map= {'document':"$xwiki.getDocument($workflowdoc).getDisplayTitle()", 'url':"$xwiki.getDocument($workflowDocRef).getExternalURL()", 'reason':"$!request.reason"})
          #set($discard = $xwiki.mailsender.sendMessageFromTemplate($defaultMail, $recipients, null, null, $xcontext.getLocale().toString(), "PublicationWorkflow.PublicationRefusalMailTemplate", $map))
        #end
      #elseif($action == 'submitforvalidation' || $action=='unpublish')
        #set($webmasters = $group.getProperty('validator').value)
        #getUsersFromGroup($webmasters)
        #set($map={'document':"$xwiki.getDocument($workflowdoc).getDisplayTitle()", 'url':"$xwiki.getDocument($workflowDocRef).getExternalURL()"})
        #if($action == 'submitforvalidation')
          #set($discard = $xwiki.mailsender.sendMessageFromTemplate($defaultMail, $recipients, null, null, $xcontext.getLocale().toString(), "PublicationWorkflow.PublicationRequestMailTemplate", $map))
        #else
          #set($discard = $xwiki.mailsender.sendMessageFromTemplate($defaultMail, $recipients, null, null, $xcontext.getLocale().toString(), "PublicationWorkflow.DepublicationMailTemplate", $map))
        #end
      #elseif($action == 'refusemoderation')
        #set($contributors = $group.getProperty('contributor').value)
        #getUsersFromGroup($contributors)
        #set($map={'document':"$xwiki.getDocument($workflowdoc).getDisplayTitle()", 'url':"$xwiki.getDocument($workflowDocRef).getExternalURL()", 'reason':"$!request.reason"})
        #set($discard = $xwiki.mailsender.sendMessageFromTemplate($defaultMail, $recipients, null, null, $xcontext.getLocale().toString(), "PublicationWorkflow.ValidationRefusalMailTemplate", $map))
      #end
    #end

    #if($action == 'unpublish' || $action=='backtodraft')          ##If the document is being unpublished or unarchived we redirect to the draft
      $response.sendRedirect($xwiki.getURL($workflowDocRef, 'view', ''))
    #elseif($action == 'publish')        ##If the document is being published we redirect to the final doc
      #set($workflowDoc = $xwiki.getDocument($workflowDocRef))
      #set($workflowObject = $workflowDoc.getObject("PublicationWorkflow.PublicationWorkflowClass"))
      #set($target = $workflowObject.getProperty('target').value)
      $response.sendRedirect($xwiki.getURL($target, 'view', ''))
    #elseif($action == 'getEditableDraft')## if we're starting a new edit session from the target, direct to the draft
      $response.sendRedirect($xwiki.getURL($docToShow, 'view', ''))
    #else
      ## in all other situations redirect to the document specified from the parameters
      $response.sendRedirect($xwiki.getURL($redirectdoc, 'view', ''))
    #end
  #else
    $services.localization.render('workflow.script.failed')
  #end
#end]
 at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:139)
 at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)
 at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:279)
 at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
 at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
 at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:309)
 at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
 at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)
 at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:395)
 at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:268)
 at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)
 at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
 at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:290)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)
 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)
 at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)
 at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)
 at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
 at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
 at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)
 at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
 at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
 at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
 at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1350)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1487)
 at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1436)
 at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1405)
 at com.xpn.xwiki.api.Document.displayDocument(Document.java:798)
 at jdk.internal.reflect.GeneratedMethodAccessor640.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
 at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
 at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)
 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.Template.merge(Template.java:358)
 at org.apache.velocity.Template.merge(Template.java:262)
 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)
 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)
 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)
 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)
 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)
 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)
 at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)
 at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
 at jdk.internal.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.Template.merge(Template.java:358)
 at org.apache.velocity.Template.merge(Template.java:262)
 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)
 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)
 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)
 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)
 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)
 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)
 at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2523)
 at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
 at jdk.internal.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.Template.merge(Template.java:358)
 at org.apache.velocity.Template.merge(Template.java:262)
 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)
 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:284)
 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:284)
 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:267)
 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)
 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)
 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)
 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)
 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2545)
 at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:601)
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:289)
 at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
 at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:359)
 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889)
 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1735)
 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
 at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with namespace [xwiki:PublicationWorkflow.Script]
 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:289)
 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
 at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
 ... 190 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'publish' in  class org.xwiki.workflowpublication.internal.PublicationWorkflowService threw exception java.lang.NullPointerException at xwiki:PublicationWorkflow.Script[line 86, column 46]
 at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:308)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:235)
 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
 at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
 at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:108)
 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.Template.merge(Template.java:358)
 at org.apache.velocity.Template.merge(Template.java:262)
 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
 ... 192 more
Caused by: java.lang.NullPointerException
 at org.xwiki.workflowpublication.internal.DefaultPublicationWorkflow.publish(DefaultPublicationWorkflow.java:878)
 at org.xwiki.workflowpublication.internal.PublicationWorkflowService.publish(PublicationWorkflowService.java:294)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
 ... 206 more

This is the Error message

Deprecated usage of method [com.xpn.xwiki.api.Document.getTranslationList] in xwiki:PublicationWorkflow.PublicationWorkflowPanel@5,12

Is my Error in the Log File. I use version 2.2 of the workflow extension and Xwiki Debian 14.7

Can anyone help me or have any questions?