
RicardoPereira asked a question.
Is PowershellWebService called even without being configured in the service?
Dear,
I have a doubt that it may be simple.
I have a workflow with about 20 different activities, which depend on numerous powershellwebservice, each assigned service performs part of that workflow.
My doubt is whether the powershellwebservice will be called regardless of being in the service. configured
Hi @Ricardo Rerison​,
If I understand you correctly, you are concerned about whether the PowerShell Web Services you created and assigned to workflow level parameters will be picked up at the Service level in AP?
To verify this you can navigate to:
AP --> Administer --> Service Admin
Select the AP Service in question and expand it. At this stage you can confirm whether the workflow you have applied your PowerShell Web Services to is applied to the chosen Service, if the workflow in question is linked to the chosen Service you can expand the workflow and ensure that the workflow configuration is being used. If you notice however that the configuration has been set at the Service level and is overriding the workflow configuration, you can reset the relevant parameter(s) - this will re-apply the workflow level configuration and it will override the Service level configuration.
Thereafter you can confirm if the PowerShell Web Service is invoking correctly by requesting the specified service through the AP checkout process. You can then monitor the request in the AP Request Monitor (assuming you have elevated rights to view this section of the Administer menu) and verify if the target parameters are populating correctly.
Hope this helps. However if you have any further questions around AP customisation please liaise with your account manager and arrange some Snow Professional Services time.
Kind Regards,
F
Thank you for the informations.
But that's about it, my fear is that PSWebservices will run even without being part of the service.
At this point I have them configured in activities that are in turn in the workflow. But service X has no PSWebservice membership.
Hi @Ricardo Rerison​,
Have you been able to reset each of the parameters at the Service workflow activity level (AP --> Administer --> Service Admin --> expand Service --> expand Workflow --> expand Activity), these are the parameters where you are expecting the web services to be configured?
Unfortunately without looking at your configuration it will be hard to diagnose the core problem. Please liaise with your account manager to arrange an exploratory session with a member of the Professional Services team @ Snow.
Kind regards,
/F
Additionally, I am afraid that many PSWebServices may slow down the service.
A powershell webservice is part of a parameter, that is part of an activity, that is part of a workflow, that is linked to a service.
What, exactly, do you mean by "service X has no PSWebservice membership"?
If you deactivate an activity in the workflow for a special service, the PWS in this activity will not be executed.
If you use a run condition in the activity, the PWS will be executed.
If the PWS uses another parameter of the workflow or service as input, it will be executed multiple times when that other parameter changes.
Will a PWS slow down the order process? Well, this depends on the PWS.
I have an activity that does a SQL query, and of course this lasts as long as the query takes.
Simple PowerShell scripts will usually not take long.
Good morning Axel,
I understood what you said.
I have a workflow with several activities and services that perform this wirkflow with N activities disabled.
PWS are used as parameters in exclusive activities.
I noticed this because one of the PWS was returning ERROR, and then I saw that it is not part of the service that was being performed.
Hello Ricardo,
ok, this makes sense.
I do not remember that I have noticed this behaviour in the environments I work with.
Only circumstance I could imagine is, that this parameter or maybe another parameter from this activity is used in another activity. But I have never tested something similar.
I'm thinking about it too, but I'm trying to leave as calls in the activity and make a note of the fields that need to be called there.
The parameter issue may be a good one for me to check as well.
Anyway, to my understanding this should not happen, but I may be wrong and or setting something wrong.
I agree, it should not happen.
If you deactivated an activity, it should be inactive. Period.
Hi @Ricardo Rerison​ ,
Do I understand the scenario correct here:
You have a PSWS in a activity that is disabled on service level, and when it is requested it fails.
Does it fail in the cart, or when requested, or later on in the workflow process?
Do you have a screenshot or log of the error that you can share?
BR //Oskar