2024 Feb 27 7:19 AM
Hi Experts,
I have gone through few blogs which suggest the usage of 'attributes.ExampleCustomAttribute' which we get through custom variable.
What I am struggling with is how do i declare custom variable in my SAP BPA Process.
Regards,
Karthika
2024 Feb 27 12:00 PM - edited 2024 Mar 02 6:07 AM
You can define Custom Variables in Variables tab of Process Details.
Select the process canvas and open the "Process Details" panel on the right by clicking on "<<", just below buttons for zoom on the top right.
Configure Process Variables | SAP Build Process Automation | SAP Help
[Update]
Custom Attributes are defined in the Visibility tab of Process Details.
2024 Mar 03 9:06 AM
This parameter seems to have to do with Process Visibility – to learn more, here is a video to start you off: https://youtu.be/qlo2itgC6-U which helps you monitor the processes.
Here, I created a variable for process visibility – newstatus is one of the inputs I defined for the process:
I have many instances, but I can add the parameter to my API call and it will retrieve only the processes that have this variable set to "APPROVED".
If I run it I will get only the instance that I just created using this process visibility variable.
2024 Mar 04 11:01 AM
This helps a lot. Now I am able to understand the usage and functionality of custom attributes.
Thanks a lot 🙂
2024 Mar 01 12:59 PM
Hi @Dinu
I did see custom variables , but was not sure these are the ones coming under attributes.ExampleCustomAttribute.
Let me try this out
Regards,
Karthika
2024 Mar 02 6:15 AM
In the question you were only asking about Custom Variable. I have updated the answer for Custom Attribute. Without knowing what you want to do, one cannot suggest which would work best for you.
2024 Mar 03 5:27 AM
Hi @Dinu
Re reading my question I can now see how this would be confusing.
Let me try to attach example of what I am trying to achieve so that it would be better to analyse on those lines:-
1. The API available under the SAP accelerator hub to get workflow instances on basis of query parameters is explained as below on the site
2. Under this we have attributes.ExampleCustomAttribute described as below
3. I wanted to understand where can this be set?
Thanks & Regards,
Karthika
2024 Mar 03 11:10 AM - edited 2024 Mar 03 3:21 PM
The api is referring to attributes modeled in Visibility tab of Process details. You can model up to 15 simple typed attributes, by mapping to variables in the context. In the example, ExampleCustomAttribute is the Id of an attribute.
2024 Mar 04 11:03 AM
Hi @Dinu ,
Thanks for your inputs. The reply from both you and Dan has clarified my doubt.
Reagrds,
Karthika
2024 Mar 03 11:29 AM