since ‎06-05-2020
‎11-04-2021
aemg12
Level 1
How to Mock WorkflowService
Avatar

aemg12

aemg12
- Adobe Experience Manager
Below is my original class @referenceprivate ResourceResolverFactory resourceResolverFactory;@referenceprivate WorkflowService workflowService; How can I mock the above?I tried something like below: @MockWorkflowService workflowServiceMock; thenworkflowServiceMock = context.registerInjectActivateService(workflowServiceMock); But it throws NullPointerException

Views

241

Likes

0

Replies

2
javax.jcr.InvalidItemStateException: OakState0001 on creating of translation Projects
Avatar

aemg12

aemg12
- Adobe Experience Manager
I have a JS code that calls a create language copy workflow at /etc/workflow/instances which then calls /etc/workflow/models/wcm-translation/prepare_translation_project and creates translation projects. I am good when i send fewer content for translation but as soon as I send more I get below errors: 14.09.2020 08:21:38.147 *ERROR* [JobHandler: /var/workflow/instances/server0/2020-09-14/prepare_translation_project_12:/content/experience-fragments/mysite/europe/de_de/adults/test/xf23] com.adobe.c...

Views

110

Likes

0

Replies

0
Re: Auto Publish Language copy after Translation Completed
Avatar

aemg12

aemg12
- Adobe Experience Manager
@Nikhil-Kumar Thats what I used and it caused the problem mentioned above.

Views

194

Likes

0

Replies

0
Auto Publish Language copy after Translation Completed
Avatar

aemg12

aemg12
- Adobe Experience Manager
We have a Human Translation vendor implemented for our experience fragments on AEM 6.5 and I am looking from different solutions to auto publish my content once they come back from vendor. I tried writing listener but it gets triggered before AEM replaces language copy with translated copy and I end up publishing English copy instead. Any ideas?

Views

237

Likes

0

Replies

2